@Test public void ofArgs() { Assert.assertEquals(ActiveProfiles.EMPTY, ActiveProfiles.ofArgs(Arrays.asList())); Assert.assertEquals(ActiveProfiles.of("p1"), ActiveProfiles.ofArgs(Arrays.asList("-Pp1"))); Assert.assertEquals(ActiveProfiles.of("p1", "p2"), ActiveProfiles.ofArgs(Arrays.asList("-Pp1,p2"))); Assert.assertEquals(ActiveProfiles.of("p1"), ActiveProfiles.ofArgs(Arrays.asList("-P", "p1"))); Assert.assertEquals(ActiveProfiles.of("p1", "p2"), ActiveProfiles.ofArgs(Arrays.asList("-P", "p1,p2"))); Assert.assertEquals(ActiveProfiles.of("p1"), ActiveProfiles.ofArgs(Arrays.asList("--activate-profiles", "p1"))); Assert.assertEquals(ActiveProfiles.of("p1", "p2"), ActiveProfiles.ofArgs(Arrays.asList("--activate-profiles", "p1,p2"))); }
public static MavenSourceTree of(Path rootPomXml, Charset encoding) { return new Builder(rootPomXml.getParent(), encoding).pomXml(rootPomXml).build(); }
MavenSourceTree { public static MavenSourceTree of(Path rootPomXml, Charset encoding) { return new Builder(rootPomXml.getParent(), encoding).pomXml(rootPomXml).build(); } }
MavenSourceTree { public static MavenSourceTree of(Path rootPomXml, Charset encoding) { return new Builder(rootPomXml.getParent(), encoding).pomXml(rootPomXml).build(); } MavenSourceTree(Path rootDirectory, Charset encoding, Map<String, Module> modulesByPath,
            Map<Ga, Module> modulesByGa); }
MavenSourceTree { public static MavenSourceTree of(Path rootPomXml, Charset encoding) { return new Builder(rootPomXml.getParent(), encoding).pomXml(rootPomXml).build(); } MavenSourceTree(Path rootDirectory, Charset encoding, Map<String, Module> modulesByPath,
            Map<Ga, Module> modulesByGa); static MavenSourceTree of(Path rootPomXml, Charset encoding); Set<Ga> computeModuleClosure(Collection<Ga> initialModules, Predicate<Profile> isProfileActive); String evaluate(Expression expression, Predicate<Profile> isProfileActive); Set<Ga> filterDependencies(GavSet gavSet, final Predicate<Profile> isProfileActive); Charset getEncoding(); Map<Ga, Module> getModulesByGa(); Map<String, Module> getModulesByPath(); Path getRootDirectory(); Module getRootModule(); void setVersions(final String newVersion, final Predicate<Profile> isProfileActive); void unlinkUneededModules(Set<Ga> includes, Predicate<Profile> isProfileActive); }
MavenSourceTree { public static MavenSourceTree of(Path rootPomXml, Charset encoding) { return new Builder(rootPomXml.getParent(), encoding).pomXml(rootPomXml).build(); } MavenSourceTree(Path rootDirectory, Charset encoding, Map<String, Module> modulesByPath,
            Map<Ga, Module> modulesByGa); static MavenSourceTree of(Path rootPomXml, Charset encoding); Set<Ga> computeModuleClosure(Collection<Ga> initialModules, Predicate<Profile> isProfileActive); String evaluate(Expression expression, Predicate<Profile> isProfileActive); Set<Ga> filterDependencies(GavSet gavSet, final Predicate<Profile> isProfileActive); Charset getEncoding(); Map<Ga, Module> getModulesByGa(); Map<String, Module> getModulesByPath(); Path getRootDirectory(); Module getRootModule(); void setVersions(final String newVersion, final Predicate<Profile> isProfileActive); void unlinkUneededModules(Set<Ga> includes, Predicate<Profile> isProfileActive);  }