Search in sources :

Example 1 with CleanupEventService

use of com.thinkbiganalytics.nifi.core.api.cleanup.CleanupEventService in project kylo by Teradata.

the class TriggerCleanupTest method setUp.

/**
 * Initialize instance variables.
 */
@Before
public void setUp() throws Exception {
    // Setup services
    final CleanupEventService cleanupService = new MockCleanupEventService();
    final MetadataProviderService metadataService = new MockMetadataProviderService();
    // Setup test runner
    runner.addControllerService(CLEANUP_SERVICE_IDENTIFIER, cleanupService);
    runner.addControllerService(METADATA_SERVICE_IDENTIFIER, metadataService);
    runner.enableControllerService(cleanupService);
    runner.enableControllerService(metadataService);
    runner.setProperty(TriggerCleanup.CLEANUP_SERVICE, CLEANUP_SERVICE_IDENTIFIER);
    runner.setProperty(TriggerCleanup.METADATA_SERVICE, METADATA_SERVICE_IDENTIFIER);
}
Also used : CleanupEventService(com.thinkbiganalytics.nifi.core.api.cleanup.CleanupEventService) MetadataProviderService(com.thinkbiganalytics.nifi.core.api.metadata.MetadataProviderService) Before(org.junit.Before)

Aggregations

CleanupEventService (com.thinkbiganalytics.nifi.core.api.cleanup.CleanupEventService)1 MetadataProviderService (com.thinkbiganalytics.nifi.core.api.metadata.MetadataProviderService)1 Before (org.junit.Before)1