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