Class NativeSdkAssertions
- java.lang.Object
-
- org.assertj.core.api.Assertions
-
- com.snowflake.connectors.common.assertions.NativeSdkAssertions
-
- All Implemented Interfaces:
org.assertj.core.api.InstanceOfAssertFactories
public class NativeSdkAssertions extends org.assertj.core.api.Assertions
Entry point for custom native-sdk AssertJ based assertions.
-
-
Field Summary
Fields Modifier and Type Field Description static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.taskreactor.commands.queue.Command,CommandAssert>
COMMAND
Definition ofInstanceOfAssertFactory
forCommand
assertion classes.static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.Identifier,IdentifierAssert>
IDENTIFIER
static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.application.ingestion.process.IngestionProcess,IngestionProcessAssert>
INGESTION_PROCESS
static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.ObjectName,ObjectNameAssert>
OBJECT_NAME
static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.Reference,ReferenceAssert>
REFERENCE
static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.application.ingestion.definition.ResourceIngestionDefinition,ResourceIngestionDefinitionAssert>
RESOURCE_INGESTION_DEFINITION
static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.SchemaName,SchemaNameAssert>
SCHEMA_NAME
static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.task.TaskProperties,TaskPropertiesAssert>
TASK_PROPERTIES
Definition ofInstanceOfAssertFactory
forTaskProperties
assertion classes.-
Fields inherited from interface org.assertj.core.api.InstanceOfAssertFactories
ARRAY, ARRAY_2D, ATOMIC_BOOLEAN, ATOMIC_INTEGER, ATOMIC_INTEGER_ARRAY, ATOMIC_INTEGER_FIELD_UPDATER, ATOMIC_LONG, ATOMIC_LONG_ARRAY, ATOMIC_LONG_FIELD_UPDATER, ATOMIC_MARKABLE_REFERENCE, ATOMIC_REFERENCE, ATOMIC_REFERENCE_ARRAY, ATOMIC_REFERENCE_FIELD_UPDATER, ATOMIC_STAMPED_REFERENCE, BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BOOLEAN_2D_ARRAY, BOOLEAN_ARRAY, BYTE, BYTE_2D_ARRAY, BYTE_ARRAY, CHAR_2D_ARRAY, CHAR_ARRAY, CHAR_SEQUENCE, CHARACTER, CLASS, COLLECTION, COMPLETABLE_FUTURE, COMPLETION_STAGE, DATE, DOUBLE, DOUBLE_2D_ARRAY, DOUBLE_ARRAY, DOUBLE_PREDICATE, DOUBLE_STREAM, DURATION, FILE, FLOAT, FLOAT_2D_ARRAY, FLOAT_ARRAY, FUTURE, INPUT_STREAM, INSTANT, INT_2D_ARRAY, INT_ARRAY, INT_PREDICATE, INT_STREAM, INTEGER, ITERABLE, ITERATOR, LIST, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, LONG, LONG_2D_ARRAY, LONG_ADDER, LONG_ARRAY, LONG_PREDICATE, LONG_STREAM, MAP, MATCHER, OFFSET_DATE_TIME, OFFSET_TIME, OPTIONAL, OPTIONAL_DOUBLE, OPTIONAL_INT, OPTIONAL_LONG, PATH, PERIOD, PREDICATE, SHORT, SHORT_2D_ARRAY, SHORT_ARRAY, SPLITERATOR, STREAM, STRING, STRING_BUFFER, STRING_BUILDER, THROWABLE, URI_TYPE, URL_TYPE, ZONED_DATE_TIME
-
-
Constructor Summary
Constructors Constructor Description NativeSdkAssertions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceIngestionDefinitionAssert
assertThat(com.snowflake.connectors.application.ingestion.definition.ResourceIngestionDefinition<?,?,?,?> actual)
Creates a new assertion for the specifiedResourceIngestionDefinition
.static IngestionProcessAssert
assertThat(com.snowflake.connectors.application.ingestion.process.IngestionProcess actual)
Creates a new assertion for the specifiedIngestionProcess
.static IngestionRunAssert
assertThat(com.snowflake.connectors.application.observability.IngestionRun actual)
Creates a new assertion for the specifiedIngestionRun
.static FullConnectorStatusAssert
assertThat(com.snowflake.connectors.application.status.FullConnectorStatus actual)
Creates a new assertion for the specifiedFullConnectorStatus
.static TestStateAssert
assertThat(TestState actual)
Creates a new assertion for the specifiedTestState
.static TestConfigAssert
assertThat(TestConfig actual)
Creates a new assertion for the specifiedTestConfig
.static IdentifierAssert
assertThat(com.snowflake.connectors.common.object.Identifier actual)
Creates a new assertion for the specifiedIdentifier
.static ObjectNameAssert
assertThat(com.snowflake.connectors.common.object.ObjectName actual)
Creates a new assertion for the specifiedObjectName
.static ReferenceAssert
assertThat(com.snowflake.connectors.common.object.Reference actual)
Creates a new assertion for the specifiedReference
.static SchemaNameAssert
assertThat(com.snowflake.connectors.common.object.SchemaName actual)
Creates a new assertion for the specifiedSchemaName
.static ConnectorResponseAssert
assertThat(com.snowflake.connectors.common.response.ConnectorResponse actual)
Creates a new assertion for the specifiedConnectorResponse
.static TaskPropertiesAssert
assertThat(com.snowflake.connectors.common.task.TaskProperties actual)
Creates a new assertion for the specifiedTaskProperties
.static CommandAssert
assertThat(com.snowflake.connectors.taskreactor.commands.queue.Command actual)
Creates a new assertion for the specifiedCommand
.static VariantAssert
assertThat(Variant actual)
Creates a new assertion for the specifiedVariant
.static ResponseMapAssert
assertThatResponseMap(Map<String,Variant> actual)
Creates a new assertion for the specified map representing a variant response.-
Methods inherited from class org.assertj.core.api.Assertions
allOf, allOf, allOf, anyOf, anyOf, anyOf, as, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThatCharSequence, assertThatCode, assertThatCollection, assertThatComparable, assertThatException, assertThatExceptionOfType, assertThatIllegalArgumentException, assertThatIllegalStateException, assertThatIndexOutOfBoundsException, assertThatIOException, assertThatIterable, assertThatIterator, assertThatList, assertThatNoException, assertThatNullPointerException, assertThatObject, assertThatPath, assertThatPredicate, assertThatReflectiveOperationException, assertThatRuntimeException, assertThatStream, assertThatThrownBy, assertThatThrownBy, assertWith, atIndex, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, catchException, catchIllegalArgumentException, catchIllegalStateException, catchIndexOutOfBoundsException, catchIOException, catchNullPointerException, catchReflectiveOperationException, catchRuntimeException, catchThrowable, catchThrowableOfType, contentOf, contentOf, contentOf, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, fail, failBecauseExceptionWasNotThrown, filter, filter, from, in, linesOf, linesOf, linesOf, linesOf, linesOf, linesOf, linesOf, linesOf, linesOf, not, not, notIn, offset, offset, registerCustomDateFormat, registerCustomDateFormat, registerFormatterForType, setAllowComparingPrivateFields, setAllowExtractingPrivateFields, setDescriptionConsumer, setExtractBareNamePropertyMethods, setLenientDateParsing, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, setMaxStackTraceElementsDisplayed, setPrintAssertionsDescription, setRemoveAssertJRelatedElementsFromStackTrace, shouldHaveThrown, tuple, useDefaultDateFormatsOnly, useDefaultRepresentation, useRepresentation, within, within, within, within, within, within, within, within, within, withinPercentage, withinPercentage, withinPercentage, withMarginOf, withPrecision, withPrecision
-
-
-
-
Field Detail
-
INGESTION_PROCESS
public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.application.ingestion.process.IngestionProcess,IngestionProcessAssert> INGESTION_PROCESS
-
RESOURCE_INGESTION_DEFINITION
public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.application.ingestion.definition.ResourceIngestionDefinition,ResourceIngestionDefinitionAssert> RESOURCE_INGESTION_DEFINITION
-
TASK_PROPERTIES
public static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.task.TaskProperties,TaskPropertiesAssert> TASK_PROPERTIES
Definition ofInstanceOfAssertFactory
forTaskProperties
assertion classes.
-
COMMAND
public static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.taskreactor.commands.queue.Command,CommandAssert> COMMAND
Definition ofInstanceOfAssertFactory
forCommand
assertion classes.
-
IDENTIFIER
public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.Identifier,IdentifierAssert> IDENTIFIER
-
SCHEMA_NAME
public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.SchemaName,SchemaNameAssert> SCHEMA_NAME
-
OBJECT_NAME
public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.ObjectName,ObjectNameAssert> OBJECT_NAME
-
REFERENCE
public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.Reference,ReferenceAssert> REFERENCE
-
-
Method Detail
-
assertThat
public static TestConfigAssert assertThat(TestConfig actual)
Creates a new assertion for the specifiedTestConfig
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static IngestionProcessAssert assertThat(com.snowflake.connectors.application.ingestion.process.IngestionProcess actual)
Creates a new assertion for the specifiedIngestionProcess
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static IngestionRunAssert assertThat(com.snowflake.connectors.application.observability.IngestionRun actual)
Creates a new assertion for the specifiedIngestionRun
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static ConnectorResponseAssert assertThat(com.snowflake.connectors.common.response.ConnectorResponse actual)
Creates a new assertion for the specifiedConnectorResponse
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static FullConnectorStatusAssert assertThat(com.snowflake.connectors.application.status.FullConnectorStatus actual)
Creates a new assertion for the specifiedFullConnectorStatus
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static ResourceIngestionDefinitionAssert assertThat(com.snowflake.connectors.application.ingestion.definition.ResourceIngestionDefinition<?,?,?,?> actual)
Creates a new assertion for the specifiedResourceIngestionDefinition
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThatResponseMap
public static ResponseMapAssert assertThatResponseMap(Map<String,Variant> actual)
Creates a new assertion for the specified map representing a variant response.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static TestStateAssert assertThat(TestState actual)
Creates a new assertion for the specifiedTestState
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static TaskPropertiesAssert assertThat(com.snowflake.connectors.common.task.TaskProperties actual)
Creates a new assertion for the specifiedTaskProperties
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static CommandAssert assertThat(com.snowflake.connectors.taskreactor.commands.queue.Command actual)
Creates a new assertion for the specifiedCommand
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static VariantAssert assertThat(Variant actual)
Creates a new assertion for the specifiedVariant
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static IdentifierAssert assertThat(com.snowflake.connectors.common.object.Identifier actual)
Creates a new assertion for the specifiedIdentifier
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static SchemaNameAssert assertThat(com.snowflake.connectors.common.object.SchemaName actual)
Creates a new assertion for the specifiedSchemaName
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static ObjectNameAssert assertThat(com.snowflake.connectors.common.object.ObjectName actual)
Creates a new assertion for the specifiedObjectName
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
assertThat
public static ReferenceAssert assertThat(com.snowflake.connectors.common.object.Reference actual)
Creates a new assertion for the specifiedReference
.- Parameters:
actual
- actual value- Returns:
- new assertion instance
-
-