@After @Override public void tearDown() throws Exception { try { SyncSiteService.deleteSyncSite(_syncSite1.getSyncSiteId()); SyncSiteService.deleteSyncSite(_syncSite2.getSyncSiteId()); } finally { super.tearDown(); } }
@Before @Override public void setUp() throws Exception { super.setUp(); _syncSite1 = SyncSiteTestUtil.addSyncSite( 10158, FileUtil.getFilePathName(filePathName, "test-site1"), 10185, syncAccount.getSyncAccountId()); SyncSiteService.activateSyncSite(_syncSite1.getSyncSiteId(), true); _syncSite2 = SyncSiteTestUtil.addSyncSite( 10158, FileUtil.getFilePathName(filePathName, "test-site2"), 10186, syncAccount.getSyncAccountId()); SyncSiteService.activateSyncSite(_syncSite2.getSyncSiteId(), true); }