private MaterialRevisions checkinFile( SvnMaterial svn, String checkinFile, final SvnTestRepo svnRepository) throws Exception { svnRepository.checkInOneFile(checkinFile); materialDatabaseUpdater.updateMaterial(svn); return materialRepository.findLatestModification(svn); }
public void addNewMaterialWithModifications(Material material, File folder) { MaterialRevisions materialRevisions = materialRepository.findLatestModification(material); Modifications list = materialRevisions.getModifications(material); insertLatestOrNewModifications( material, materialRepository.findOrCreateFrom(material), folder, list); }
private void assertHasModifcation(MaterialRevisions materialRevisions, boolean b) { HgMaterial hgMaterial = new HgMaterial("foo.com", null); when(materialRepository.findLatestModification(hgMaterial)).thenReturn(materialRevisions); assertThat(materialService.hasModificationFor(hgMaterial), is(b)); }