use of com.yahoo.athenz.zts.store.impl.ZMSFileChangeLogStoreFactory in project athenz by yahoo.
the class ZMSFileChangeLogStoreFactoryTest method testCreateStore.
@Test
public void testCreateStore() {
File privKeyFile = new File("src/test/resources/zts_private.pem");
String privKey = Crypto.encodedFile(privKeyFile);
PrivateKey pkey = Crypto.loadPrivateKey(Crypto.ybase64DecodeString(privKey));
ZMSFileChangeLogStoreFactory factory = new ZMSFileChangeLogStoreFactory();
ChangeLogStore store = factory.create(ZTS_DATA_STORE_PATH, pkey, "0", null);
assertNotNull(store);
}
Aggregations