Simplify hocon IT to not rely on a complex parent POM

This commit is contained in:
Guillaume Nodet 2024-11-05 10:14:21 +01:00
parent 2f8f380da9
commit 4270e7883f
2 changed files with 2 additions and 8 deletions

View File

@ -64,12 +64,11 @@ class MavenITmng7836AlternativePomSyntaxTest extends AbstractMavenIntegrationTes
assertTrue(Files.isRegularFile(consumerPom));
List<String> consumerPomLines = Files.readAllLines(consumerPom, StandardCharsets.UTF_8);
assertTrue(consumerPomLines.stream().anyMatch(l -> l.contains("<name>Apache-2.0</name>")));
assertFalse(consumerPomLines.stream().anyMatch(l -> l.contains("<parent>")));
assertTrue(consumerPomLines.stream().anyMatch(l -> l.contains("<artifactId>hocon-simple</artifactId>")));
// The build pom is the original POM, so the hocon file
assertTrue(Files.isRegularFile(buildPom));
List<String> buildPomLines = Files.readAllLines(buildPom, StandardCharsets.UTF_8);
assertTrue(buildPomLines.stream().anyMatch(l -> l.contains("groupId = org.apache.maven.extensions")));
assertTrue(buildPomLines.stream().anyMatch(l -> l.contains("artifactId = hocon-simple")));
}
}

View File

@ -17,11 +17,6 @@
# under the License.
#
modelVersion = 4.0.0
parent {
groupId = org.apache.maven.extensions
artifactId = maven-extensions
version = 41
}
groupId = org.apache.maven.its.mng-7836
artifactId = hocon-simple
version = 1.0.0-SNAPSHOT