public void testReadFromPropertiesWithEmptyProperties() throws Exception {
   Classpath recreatedClasspath = readClasspathFromProperties();
   assertTrue(recreatedClasspath.getClassPath().isEmpty());
 }
 private Classpath createClasspathWithTwoElements() {
   return Classpath.emptyClasspath()
       .addClassPathElementUrl(FIRST_ELEMENT)
       .addClassPathElementUrl(SECOND_ELEMENT);
 }
Exemple #3
0
 public static Classpath join(Classpath firstClasspath, Classpath secondClasspath) {
   Classpath joinedClasspath = new Classpath();
   joinedClasspath.addElementsOfClasspath(firstClasspath);
   joinedClasspath.addElementsOfClasspath(secondClasspath);
   return joinedClasspath;
 }