setup(false);
try {
ImportConfigurationCheckingSynchronizer.reset();
synchronizationManager.setSynchronizerFactory(new SynchronizerFactory() {
@Override
public Set<Synchronizer<?, ?>> getAllSynchronizers() {
return Collections.<Synchronizer<?, ?>> singleton(new ImportConfigurationCheckingSynchronizer());
}
});
export = synchronizationManager.exportAllSubsystems(freshUser());
//and import it back again, so that we actually invoke the import validation
synchronizationManager.importAllSubsystems(freshUser(), export.getExportFile(), null);
assertTrue(ImportConfigurationCheckingSynchronizer.importerConfigured);
assertTrue(ImportConfigurationCheckingSynchronizer.importValidatorsObtainedAfterConfiguration);
} finally {
//reset the factory so that other tests work w/ the default syncers
synchronizationManager.setSynchronizerFactory(new SynchronizerFactory());
tearDown();
}
}