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
      Definition of InstanceOfAssertFactory for Identifier assertion classes.
      static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.application.ingestion.process.IngestionProcess,​IngestionProcessAssert> INGESTION_PROCESS
      Definition of InstanceOfAssertFactory for IngestionProcess assertion classes.
      static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.ObjectName,​ObjectNameAssert> OBJECT_NAME
      Definition of InstanceOfAssertFactory for ObjectName assertion classes.
      static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.Reference,​ReferenceAssert> REFERENCE
      Definition of InstanceOfAssertFactory for Reference assertion classes.
      static org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.SchemaName,​SchemaNameAssert> SCHEMA_NAME
      Definition of InstanceOfAssertFactory for SchemaName assertion classes.
      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, SET, SHORT, SHORT_2D_ARRAY, SHORT_ARRAY, SPLITERATOR, STREAM, STRING, STRING_BUFFER, STRING_BUILDER, TEMPORAL, THROWABLE, URI_TYPE, URL_TYPE, YEAR_MONTH, ZONED_DATE_TIME
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <C,​D>
      IngestionConfigurationAssert<C,​D>
      assertThat​(com.snowflake.connectors.application.ingestion.definition.IngestionConfiguration<C,​D> actual)
      Creates a new assertion for the specified ResourceIngestionDefinition.
      static <I,​M,​C,​D>
      ResourceIngestionDefinitionAssert<I,​M,​C,​D>
      assertThat​(com.snowflake.connectors.application.ingestion.definition.ResourceIngestionDefinition<I,​M,​C,​D> 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, assertThat, assertThatCharSequence, assertThatCode, assertThatCollection, assertThatComparable, assertThatException, assertThatExceptionOfType, assertThatIllegalArgumentException, assertThatIllegalStateException, assertThatIndexOutOfBoundsException, assertThatIOException, assertThatIterable, assertThatIterator, assertThatList, assertThatNoException, assertThatNullPointerException, assertThatObject, assertThatPath, assertThatPredicate, assertThatReflectiveOperationException, assertThatRuntimeException, assertThatStream, assertThatTemporal, assertThatThrownBy, assertThatThrownBy, assertWith, atIndex, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, catchException, catchIllegalArgumentException, catchIllegalStateException, catchIndexOutOfBoundsException, catchIOException, catchNullPointerException, catchReflectiveOperationException, catchRuntimeException, catchThrowable, catchThrowableOfType, catchThrowableOfType, contentOf, contentOf, contentOf, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, 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
        Definition of InstanceOfAssertFactory for IngestionProcess assertion classes.
      • 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
        Definition of InstanceOfAssertFactory for Identifier assertion classes.
      • SCHEMA_NAME

        public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.SchemaName,​SchemaNameAssert> SCHEMA_NAME
        Definition of InstanceOfAssertFactory for SchemaName assertion classes.
      • OBJECT_NAME

        public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.ObjectName,​ObjectNameAssert> OBJECT_NAME
        Definition of InstanceOfAssertFactory for ObjectName assertion classes.
      • REFERENCE

        public static final org.assertj.core.api.InstanceOfAssertFactory<com.snowflake.connectors.common.object.Reference,​ReferenceAssert> REFERENCE
        Definition of InstanceOfAssertFactory for Reference assertion classes.
    • 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 <I,​M,​C,​D> ResourceIngestionDefinitionAssert<I,​M,​C,​D> assertThat​(com.snowflake.connectors.application.ingestion.definition.ResourceIngestionDefinition<I,​M,​C,​D> actual)
        Creates a new assertion for the specified ResourceIngestionDefinition.
        Type Parameters:
        I - resource id class, containing properties which identify the resource in the source system
        M - resource metadata class, containing additional properties which identify the resource in the source system. The properties can be fetched automatically or calculated by the connector
        C - custom ingestion configuration class, containing custom ingestion properties
        D - destination configuration class, containing properties describing where the ingested data should be stored
        Parameters:
        actual - actual value
        Returns:
        new assertion instance
      • assertThat

        public static <C,​D> IngestionConfigurationAssert<C,​D> assertThat​(com.snowflake.connectors.application.ingestion.definition.IngestionConfiguration<C,​D> actual)
        Creates a new assertion for the specified ResourceIngestionDefinition.
        Type Parameters:
        C - custom ingestion configuration class, containing custom ingestion properties
        D - destination configuration class, containing properties describing where the ingested data should be stored
        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