예제 #1
0
 @Test
 public void shouldDisableResourcesWithoutLastSnapshot() {
   setupData("shouldDisableResourcesWithoutLastSnapshot");
   dao.purge(1, new String[0]);
   checkTables("shouldDisableResourcesWithoutLastSnapshot", "projects", "snapshots");
 }
예제 #2
0
 @Test
 public void shouldPurgeProject() {
   setupData("shouldPurgeProject");
   dao.purge(1, new String[0]);
   checkTables("shouldPurgeProject", "projects", "snapshots");
 }
예제 #3
0
 @Test
 public void shouldDeleteHistoricalDataOfDirectoriesAndFiles() {
   setupData("shouldDeleteHistoricalDataOfDirectoriesAndFiles");
   dao.purge(1, new String[] {Scopes.DIRECTORY, Scopes.FILE});
   checkTables("shouldDeleteHistoricalDataOfDirectoriesAndFiles", "projects", "snapshots");
 }
예제 #4
0
 @Test
 public void shouldDeleteAbortedBuilds() {
   setupData("shouldDeleteAbortedBuilds");
   dao.purge(1L, new String[0]);
   checkTables("shouldDeleteAbortedBuilds", "snapshots");
 }