use of nl.nn.adapterframework.scheduler.job.CleanupDatabaseJob in project iaf by ibissource.
the class CleanupDatabaseJobTest method setup.
@Override
@Before
public void setup() throws Exception {
super.setup();
System.setProperty("tableName", tableName);
runMigrator(TEST_CHANGESET_PATH);
configuration = new TestConfiguration();
Adapter adapter = setupAdapter();
configuration.registerAdapter(adapter);
jobDef = new CleanupDatabaseJob() {
@Override
protected Set<String> getAllLockerDatasourceNames(IbisManager ibisManager) {
return Collections.singleton(getDataSourceName());
}
};
configuration.autowireByName(jobDef);
}
Aggregations