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);
}
Aggregations