FileCertRecordStoreConnection implements CertRecordStoreConnection { @Override public List<X509CertRecord> updateUnrefreshedCertificatesNotificationTimestamp(String lastNotifiedServer, long lastNotifiedTime, String provider) { return new ArrayList<>(); } FileCertRecordStoreConnection(File rootDir); @Override void close(); @Override void setOperationTimeout(int opTimeout); @Override X509CertRecord getX509CertRecord(String provider, String instanceId, String service); @Override boolean updateX509CertRecord(X509CertRecord certRecord); @Override boolean insertX509CertRecord(X509CertRecord certRecord); @Override boolean deleteX509CertRecord(String provider, String instanceId, String service); @Override int deleteExpiredX509CertRecords(int expiryTimeMins); @Override List<X509CertRecord> updateUnrefreshedCertificatesNotificationTimestamp(String lastNotifiedServer,
                                                                                   long lastNotifiedTime,
                                                                                   String provider);  }
@Test public void testUpdateUnrefreshedCertificatesNotificationTimestamp() { ZTSTestUtils.deleteDirectory(new File("/tmp/zts-cert-tests")); FileCertRecordStore store = new FileCertRecordStore(new File("/tmp/zts-cert-tests")); FileCertRecordStoreConnection con = (FileCertRecordStoreConnection) store.getConnection(); assertNotNull(con); long timestamp = System.currentTimeMillis(); List<X509CertRecord> records = con.updateUnrefreshedCertificatesNotificationTimestamp( "localhost", timestamp, "provider"); assertEquals(records, new ArrayList<>()); }