Class CommandAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<CommandAssert,com.snowflake.connectors.taskreactor.commands.queue.Command>
-
- com.snowflake.connectors.common.assertions.task.CommandAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<CommandAssert,com.snowflake.connectors.taskreactor.commands.queue.Command>
,org.assertj.core.api.Descriptable<CommandAssert>
,org.assertj.core.api.ExtensionPoints<CommandAssert,com.snowflake.connectors.taskreactor.commands.queue.Command>
public class CommandAssert extends org.assertj.core.api.AbstractAssert<CommandAssert,com.snowflake.connectors.taskreactor.commands.queue.Command>
AssertJ based assertions forCommand
.
-
-
Constructor Summary
Constructors Constructor Description CommandAssert(com.snowflake.connectors.taskreactor.commands.queue.Command command, Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandAssert
hasCommandType(com.snowflake.connectors.taskreactor.commands.queue.Command.CommandType commandType)
Asserts that this command have a commandType equal to the specified value.CommandAssert
hasId(String id)
Asserts that this command have an id equal to the specified value.CommandAssert
hasPayload(Variant payload)
Asserts that this command have a payload equal to the specified value.CommandAssert
hasSeqNo(long seqNo)
Asserts that this command have an seqNo equal to the specified value.-
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
-
CommandAssert
public CommandAssert(com.snowflake.connectors.taskreactor.commands.queue.Command command, Class<?> selfType)
-
-
Method Detail
-
hasId
public CommandAssert hasId(String id)
Asserts that this command have an id equal to the specified value.- Parameters:
id
- expected id- Returns:
- this assertion
-
hasPayload
public CommandAssert hasPayload(Variant payload)
Asserts that this command have a payload equal to the specified value.- Parameters:
payload
- expected payload- Returns:
- this assertion
-
hasSeqNo
public CommandAssert hasSeqNo(long seqNo)
Asserts that this command have an seqNo equal to the specified value.- Parameters:
seqNo
- expected seqNo- Returns:
- this assertion
-
hasCommandType
public CommandAssert hasCommandType(com.snowflake.connectors.taskreactor.commands.queue.Command.CommandType commandType)
Asserts that this command have a commandType equal to the specified value.- Parameters:
commandType
- expected commandType- Returns:
- this assertion
-
-