Package org.rhq.enterprise.server.sync

Examples of org.rhq.enterprise.server.sync.SynchronizerFactory


        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();
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.sync.SynchronizerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.