Class SdkTestUtils

    • Field Detail

      • TEST_WORKFLOW

        public static final java.lang.String TEST_WORKFLOW
        the workflow to used for transformer tests
        See Also:
        Constant Field Values
      • TEST_STAGE_NAME

        public static final java.lang.String TEST_STAGE_NAME
        the stage component name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SdkTestUtils

        public SdkTestUtils()
    • Method Detail

      • startTransformer

        public static void startTransformer​(Stage trans)
        Starts the transformer, configuring is a much as possible in the test environment. Any interfaces in com.attivio.sdk.server.component.configuration which can be initialized are set up with mock implementations.
        Parameters:
        trans -
      • createTestScannerRunner

        public static TestScannerRunner createTestScannerRunner​(java.lang.String connectorName,
                                                                DataSourceScanner scanner)
        Create a test scanner runner for testing a scanner
        Parameters:
        connectorName - the name of the mock connector created to test the scanner.
        scanner - the tested scanner
        Returns:
      • createMockSchemaUtil

        public static SchemaApi createMockSchemaUtil​(Schema schema)
        Parameters:
        schema - if null, Schema.DEFAULT_SCHEMA_NAME will be used.
        Returns:
        a mock SchemaUtil suitable for use in transformer tests.
      • startTransformer

        public static void startTransformer​(Stage trans,
                                            SchemaUtil schemaUtil)
      • startTransformer

        public static void startTransformer​(Stage trans,
                                            SchemaUtil schemaUtil,
                                            ProcessingFeedbackHandler feedbackHandler,
                                            AieLogger logger)
        *****************************************************************************************************************
      • startTransformer

        public static void startTransformer​(Stage trans,
                                            Schema schema)