Search in sources :

Example 1 with AbstractZkLedgerManagerFactory

use of org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory in project bookkeeper by apache.

the class AbstractConfigurationTest method testUnknownZkLedgerManagerFactory.

@SuppressWarnings({ "unchecked" })
@Test(expected = IllegalArgumentException.class)
public void testUnknownZkLedgerManagerFactory() throws Exception {
    AbstractZkLedgerManagerFactory mockZkFactory = mock(AbstractZkLedgerManagerFactory.class, CALLS_REAL_METHODS);
    conf.setLedgerManagerFactoryClass(mockZkFactory.getClass());
    conf.getMetadataServiceUri();
}
Also used : AbstractZkLedgerManagerFactory(org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory) Test(org.junit.Test)

Aggregations

AbstractZkLedgerManagerFactory (org.apache.bookkeeper.meta.AbstractZkLedgerManagerFactory)1 Test (org.junit.Test)1