Fix expectations on IT MNG-7836 following the modifications on the consumer pom (#308)

This commit is contained in:
Guillaume Nodet 2023-09-27 09:08:37 +02:00 committed by GitHub
parent 7046a8c406
commit d640bdec48
1 changed files with 2 additions and 2 deletions

View File

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