Class 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 of InstanceOfAssertFactory for Command 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 of InstanceOfAssertFactory for TaskProperties 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
    • 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 specified ResourceIngestionDefinition.
      static IngestionProcessAssert assertThat​(com.snowflake.connectors.application.ingestion.process.IngestionProcess actual)
      Creates a new assertion for the specified IngestionProcess.
      static IngestionRunAssert assertThat​(com.snowflake.connectors.application.observability.IngestionRun actual)
      Creates a new assertion for the specified IngestionRun.
      static FullConnectorStatusAssert assertThat​(com.snowflake.connectors.application.status.FullConnectorStatus actual)
      Creates a new assertion for the specified FullConnectorStatus.
      static TestStateAssert assertThat​(TestState actual)
      Creates a new assertion for the specified TestState.
      static TestConfigAssert assertThat​(TestConfig actual)
      Creates a new assertion for the specified TestConfig.
      static IdentifierAssert assertThat​(com.snowflake.connectors.common.object.Identifier actual)
      Creates a new assertion for the specified Identifier.
      static ObjectNameAssert assertThat​(com.snowflake.connectors.common.object.ObjectName actual)
      Creates a new assertion for the specified ObjectName.
      static ReferenceAssert assertThat​(com.snowflake.connectors.common.object.Reference actual)
      Creates a new assertion for the specified Reference.
      static SchemaNameAssert assertThat​(com.snowflake.connectors.common.object.SchemaName actual)
      Creates a new assertion for the specified SchemaName.
      static ConnectorResponseAssert assertThat​(com.snowflake.connectors.common.response.ConnectorResponse actual)
      Creates a new assertion for the specified ConnectorResponse.
      static TaskPropertiesAssert assertThat​(com.snowflake.connectors.common.task.TaskProperties actual)
      Creates a new assertion for the specified TaskProperties.
      static CommandAssert assertThat​(com.snowflake.connectors.taskreactor.commands.queue.Command actual)
      Creates a new assertion for the specified Command.
      static VariantAssert assertThat​(Variant actual)
      Creates a new assertion for the specified Variant.
      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 of InstanceOfAssertFactory for TaskProperties assertion classes.
      • COMMAND

        public static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.taskreactor.commands.queue.Command,​CommandAssert> COMMAND
        Definition of InstanceOfAssertFactory for Command 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
    • Constructor Detail

      • NativeSdkAssertions

        public NativeSdkAssertions()
    • Method Detail

      • assertThat

        public static TestConfigAssert assertThat​(TestConfig actual)
        Creates a new assertion for the specified TestConfig.
        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 specified IngestionProcess.
        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 specified IngestionRun.
        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 specified ConnectorResponse.
        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 specified FullConnectorStatus.
        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 specified ResourceIngestionDefinition.
        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 specified TestState.
        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 specified TaskProperties.
        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 specified Command.
        Parameters:
        actual - actual value
        Returns:
        new assertion instance
      • assertThat

        public static VariantAssert assertThat​(Variant actual)
        Creates a new assertion for the specified Variant.
        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 specified Identifier.
        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 specified SchemaName.
        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 specified ObjectName.
        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 specified Reference.
        Parameters:
        actual - actual value
        Returns:
        new assertion instance