DuraStoreSyncEndpoint implements SyncEndpoint { @Override public boolean syncFile(MonitoredFile syncFile, File watchDir) { SyncResultType result = syncFileAndReturnDetailedResult(syncFile, watchDir); return (result != SyncResultType.FAILED); } DuraStoreSyncEndpoint(ContentStore contentStore,
                                 String username,
                                 String spaceId,
                                 boolean syncDeletes,
                                 boolean syncUpdates,
                                 boolean renameUpdates,
                                 boolean jumpStart,
                                 String updateSuffix,
                                 String prefix);  DuraStoreSyncEndpoint(ContentStore contentStore,
                                 String username,
                                 String spaceId,
                                 boolean syncDeletes,
                                 boolean jumpStart); @Override boolean syncFile(MonitoredFile syncFile, File watchDir); @Override SyncResultType syncFileAndReturnDetailedResult(MonitoredFile syncFile,
                                                          File watchDir); @Override void deleteContent(String spaceId, String contentId); Iterator<String> getFilesList(); @Override void addEndPointListener(EndPointListener listener); @Override void removeEndPointListener(EndPointListener listener);  }
@Test public void testSyncJumpstart() throws Exception { EasyMock.expect(contentStore.addContent(EasyMock.eq(spaceId), EasyMock.isA(String.class), EasyMock.isA(InputStream.class), EasyMock.eq(0L), EasyMock.eq("text/plain"), EasyMock.isA(String.class), EasyMock.isA(Map.class))) .andReturn(""); replayMocks(); setEndpoint(null, true); MonitoredFile monitoredFile = new MonitoredFile(contentFile); endpoint.syncFile(monitoredFile, contentFile.getParentFile()); }