Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }