@Test
public void parsePom() {
InputStream is = PomModelParserTest.class.getResourceAsStream( "pom.xml" );
assertNotNull( is );
PomModel pomModel = MinimalPomParser.parse( PomModelParserTest.class.getName().replace( '.', '/' ) + ".pom.xml", is );
assertEquals( "groupId", pomModel.getReleaseId().getGroupId() );
assertEquals( "artifactId", pomModel.getReleaseId().getArtifactId() );
assertEquals( "version", pomModel.getReleaseId().getVersion() );
assertEquals( "parentGroupId", pomModel.getParentReleaseId().getGroupId() );
assertEquals( "parentArtifactId", pomModel.getParentReleaseId().getArtifactId() );
assertEquals( "parentVersion", pomModel.getParentReleaseId().getVersion() );
assertEquals( 1, pomModel.getDependencies().size() );
ReleaseId dep = pomModel.getDependencies().iterator().next();
assertEquals( "dep1GroupId", dep.getGroupId() );
assertEquals( "dep1ArtifactId", dep.getArtifactId() );
assertEquals( "dep1Version", dep.getVersion() );
}