Exemple #1
0
 @Test
 public void testLegacyGetModuleLocations() {
   CVSSCM scm = new CVSSCM(CVSROOT, MODULES, BRANCH, null, true, false, false, null);
   // there are 3 modules
   assertFalse(scm.isFlatten());
   assertTrue(scm.isLegacy());
   assertEquals(scm.getModuleLocations().length, 1);
 }
Exemple #2
0
 @Test
 public void testLegacy() {
   CVSSCM scm = new CVSSCM(CVSROOT, "module", BRANCH, null, true, true, false, null);
   // there are 1 modules, but enabled legacy mode
   assertFalse(scm.isFlatten());
   assertTrue(scm.isLegacy());
   assertEquals(scm.getModuleLocations().length, 1);
 }
Exemple #3
0
 @Test
 public void testGetModuleLocations() {
   CVSSCM scm =
       new CVSSCM(
           Arrays.asList(new ModuleLocationImpl(CVSROOT, MODULES, BRANCH, false, LOCAL_DIR)),
           null,
           true,
           false,
           null,
           false);
   // there are 3 modules
   assertFalse(scm.isFlatten());
   assertTrue(scm.isLegacy());
   assertEquals(scm.getModuleLocations().length, 1);
   assertEquals(scm.getAllModules().length, 3);
 }
Exemple #4
0
 @Test
 public void testRemoveInvalidEntries() {
   CVSSCM scm = new CVSSCM(null, MODULES, BRANCH, null, true, false, false, null);
   assertEquals(scm.getModuleLocations().length, 0);
 }