FixNotMavenizedArtifactInfo { public String buildPom(GAV gav) { return POM_TEMPLATE.replace("{groupId}", gav.getGroupId()) .replace("{artifactId}", gav.getArtifactId()) .replace("{version}", gav.getVersion()); } FixNotMavenizedArtifactInfo(); Properties getProperties(final String filePath); String buildPom(GAV gav);  }
@Test public void testBuildPOM() { final FixNotMavenizedArtifactInfo fixNotMavenizedArtifactInfo = new FixNotMavenizedArtifactInfo(); final GAV gav = new GAV("junit", "junit", "4.12"); final String pomResult = fixNotMavenizedArtifactInfo.buildPom(gav); assertThat(pomResult).isEqualTo("<project xmlns=\"http: " xmlns:xsi=\"http: " xsi:schemaLocation=\"http: "\n" + " <modelVersion>4.0.0</modelVersion>\n" + " <groupId>junit</groupId>\n" + " <artifactId>junit</artifactId>\n" + " <version>4.12</version>\n" + " <packaging>jar</packaging>\n" + "</project>"); }