use of org.commonjava.maven.ext.common.model.Project in project pom-manipulation-ext by release-engineering.
the class ProjectInheritanceTest method testVerifyRelativeExecutionRoot.
@Test
public void testVerifyRelativeExecutionRoot() throws Exception {
final File projectRoot = new File(System.getProperty("user.dir") + "/pom.xml");
Path root = Paths.get(projectRoot.getParent());
Path absolute = Paths.get(projectRoot.toString());
Path relative = root.relativize(absolute);
PomIO pomIO = new PomIO();
List<Project> projects = pomIO.parseProject(relative.toFile());
assertTrue(projects.size() == 1);
assertTrue(projects.get(0).isExecutionRoot());
}
Aggregations