Class TaskPropertiesAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<TaskPropertiesAssert,com.snowflake.connectors.common.task.TaskProperties>
-
- com.snowflake.connectors.common.assertions.task.TaskPropertiesAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<TaskPropertiesAssert,com.snowflake.connectors.common.task.TaskProperties>
,org.assertj.core.api.Descriptable<TaskPropertiesAssert>
,org.assertj.core.api.ExtensionPoints<TaskPropertiesAssert,com.snowflake.connectors.common.task.TaskProperties>
public class TaskPropertiesAssert extends org.assertj.core.api.AbstractAssert<TaskPropertiesAssert,com.snowflake.connectors.common.task.TaskProperties>
AssertJ based assertions forTaskProperties
.
-
-
Constructor Summary
Constructors Constructor Description TaskPropertiesAssert(com.snowflake.connectors.common.task.TaskProperties taskProperties, Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskPropertiesAssert
hasAllowOverlappingExecution(boolean allow)
Asserts that these task properties have an overlapping execution allowance equal to the specified value.TaskPropertiesAssert
hasCondition(String condition)
Asserts that these task properties have a condition equal to the specified value.TaskPropertiesAssert
hasDefinition(String definition)
Asserts that these task properties have a definition equal to the specified value.TaskPropertiesAssert
hasObjectName(com.snowflake.connectors.common.object.ObjectName name)
Asserts that these task properties have a task name equal to the specified value.TaskPropertiesAssert
hasSchedule(String schedule)
Asserts that these task properties have a schedule equal to the specified value.TaskPropertiesAssert
hasState(String state)
Asserts that these task properties have a state equal to the specified value.TaskPropertiesAssert
hasSuspendTaskAfterNumFailures(Integer num)
Asserts that these task properties have a suspension after failures num equal to the specified value.TaskPropertiesAssert
hasWarehouse(String warehouse)
Asserts that these task properties have a warehouse equal to the specified value.TaskPropertiesAssert
isStarted()
Asserts that these task properties have a state equal tostarted
.TaskPropertiesAssert
isSuspended()
Asserts that these task properties have a state equal tosuspended
.-
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
TaskPropertiesAssert
public TaskPropertiesAssert(com.snowflake.connectors.common.task.TaskProperties taskProperties, Class<?> selfType)
-
-
Method Detail
-
hasObjectName
public TaskPropertiesAssert hasObjectName(com.snowflake.connectors.common.object.ObjectName name)
Asserts that these task properties have a task name equal to the specified value.- Parameters:
name
- expected name- Returns:
- this assertion
-
hasDefinition
public TaskPropertiesAssert hasDefinition(String definition)
Asserts that these task properties have a definition equal to the specified value.- Parameters:
definition
- expected definition- Returns:
- this assertion
-
hasSchedule
public TaskPropertiesAssert hasSchedule(String schedule)
Asserts that these task properties have a schedule equal to the specified value.- Parameters:
schedule
- expected schedule- Returns:
- this assertion
-
hasState
public TaskPropertiesAssert hasState(String state)
Asserts that these task properties have a state equal to the specified value.- Parameters:
state
- expected state- Returns:
- this assertion
-
isSuspended
public TaskPropertiesAssert isSuspended()
Asserts that these task properties have a state equal tosuspended
.- Returns:
- this assertion
-
isStarted
public TaskPropertiesAssert isStarted()
Asserts that these task properties have a state equal tostarted
.- Returns:
- this assertion
-
hasWarehouse
public TaskPropertiesAssert hasWarehouse(String warehouse)
Asserts that these task properties have a warehouse equal to the specified value.- Parameters:
warehouse
- expected warehouse- Returns:
- this assertion
-
hasCondition
public TaskPropertiesAssert hasCondition(String condition)
Asserts that these task properties have a condition equal to the specified value.- Parameters:
condition
- expected condition- Returns:
- this assertion
-
hasAllowOverlappingExecution
public TaskPropertiesAssert hasAllowOverlappingExecution(boolean allow)
Asserts that these task properties have an overlapping execution allowance equal to the specified value.- Parameters:
allow
- expected allowance- Returns:
- this assertion
-
hasSuspendTaskAfterNumFailures
public TaskPropertiesAssert hasSuspendTaskAfterNumFailures(Integer num)
Asserts that these task properties have a suspension after failures num equal to the specified value.- Parameters:
num
- expected failures num- Returns:
- this assertion
-
-