Search in sources :

Example 1 with StubCoordinatorClientImpl

use of com.emc.storageos.db.server.util.StubCoordinatorClientImpl in project coprhd-controller by CoprHD.

the class LocalPasswordHandlerTestBase method getPasswordHandler.

public LocalPasswordHandler getPasswordHandler() {
    PasswordUtils.setDefaultProperties(new Properties());
    PasswordUtils utils = new PasswordUtils();
    utils.setCoordinator(new StubCoordinatorClientImpl(URI.create("urn:coordinator")));
    utils.setDbClient(new DummyDbClient());
    LocalPasswordHandler ph = new LocalPasswordHandler();
    ph.setConfigService(_cfg);
    ph.setPasswordUtils(utils);
    return ph;
}
Also used : DummyDbClient(com.emc.storageos.util.DummyDbClient) StubCoordinatorClientImpl(com.emc.storageos.db.server.util.StubCoordinatorClientImpl) PasswordUtils(com.emc.storageos.security.password.PasswordUtils) Properties(java.util.Properties) LocalPasswordHandler(com.emc.storageos.systemservices.impl.util.LocalPasswordHandler)

Aggregations

StubCoordinatorClientImpl (com.emc.storageos.db.server.util.StubCoordinatorClientImpl)1 PasswordUtils (com.emc.storageos.security.password.PasswordUtils)1 LocalPasswordHandler (com.emc.storageos.systemservices.impl.util.LocalPasswordHandler)1 DummyDbClient (com.emc.storageos.util.DummyDbClient)1 Properties (java.util.Properties)1