ZMSFileChangeLogStore implements ChangeLogStore { @Override public SignedDomains getUpdatedSignedDomains(StringBuilder lastModTimeBuffer) { try (ZMSClient zmsClient = getZMSClient()) { return changeLogStoreCommon.getUpdatedSignedDomains(zmsClient, lastModTimeBuffer); } catch (ZMSClientException ex) { LOGGER.error("Error when refreshing data from ZMS: {}", ex.getMessage()); return null; } } ZMSFileChangeLogStore(String rootDirectory, PrivateKey privateKey, String privateKeyId); @Override boolean supportsFullRefresh(); @Override SignedDomain getLocalSignedDomain(String domainName); @Override SignedDomain getServerSignedDomain(String domainName); @Override void removeLocalDomain(String domainName); @Override void saveLocalDomain(String domainName, SignedDomain signedDomain); @Override List<String> getLocalDomainList(); ZMSClient getZMSClient(); @Override Set<String> getServerDomainList(); @Override SignedDomains getServerDomainModifiedList(); @Override void setLastModificationTimestamp(String newLastModTime); @Override SignedDomains getUpdatedSignedDomains(StringBuilder lastModTimeBuffer); void setChangeLogStoreCommon(ZMSFileChangeLogStoreCommon changeLogStoreCommon);  }
@Test public void testGetUpdatedSignedDomainsNull() { MockZMSFileChangeLogStore store = new MockZMSFileChangeLogStore(FSTORE_PATH, null, "0"); store.setSignedDomainsExc(); StringBuilder str = new StringBuilder(); assertNull(store.getUpdatedSignedDomains(str)); }
@Test public void testGetUpdatedSignedDomainsNullDomains() { MockZMSFileChangeLogStore store = new MockZMSFileChangeLogStore(FSTORE_PATH, null, "0"); SignedDomains domains = new SignedDomains(); store.setSignedDomains(domains); StringBuilder str = new StringBuilder(); assertNull(store.getUpdatedSignedDomains(str)); }