private MaterialRevisions checkinFile(
     SvnMaterial svn, String checkinFile, final SvnTestRepo svnRepository) throws Exception {
   svnRepository.checkInOneFile(checkinFile);
   materialDatabaseUpdater.updateMaterial(svn);
   return materialRepository.findLatestModification(svn);
 }
示例#2
0
 public void addNewMaterialWithModifications(Material material, File folder) {
   MaterialRevisions materialRevisions = materialRepository.findLatestModification(material);
   Modifications list = materialRevisions.getModifications(material);
   insertLatestOrNewModifications(
       material, materialRepository.findOrCreateFrom(material), folder, list);
 }
示例#3
0
 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));
 }