Skip to content

Commit

Permalink
ci fix: adopt-openj9 does not support the footer param
Browse files Browse the repository at this point in the history
Closes: #188
  • Loading branch information
slachiewicz committed Feb 26, 2023
1 parent adc0f07 commit 9040d0d
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ public void testCustomConfiguration() throws Exception {
assertTrue(str.toUpperCase().contains("MAVEN JAVADOC PLUGIN TEST"));

// footer
if (JavaVersion.JAVA_VERSION.isBefore("16-ea")) {
if (JavaVersion.JAVA_VERSION.isBefore("16-ea")
&& !System.getProperty("java.vm.name").contains("OpenJ9")) {
assertTrue(str.toUpperCase().contains("MAVEN JAVADOC PLUGIN TEST FOOTER"));
}

Expand Down Expand Up @@ -871,16 +872,23 @@ public void testJdk6() throws Exception {
String content = readFile(overview);
assertThat(content)
.contains("Top - Copyright © All rights reserved.")
.contains("Header - Copyright © All rights reserved.")
.contains("Footer - Copyright © All rights reserved.");
.contains("Header - Copyright © All rights reserved.");
// IBM dist of adopt-openj9 does not support the footer param
if (!System.getProperty("java.vm.name").contains("OpenJ9")) {
assertThat(content).contains("Footer - Copyright © All rights reserved.");
}

Path packageSummary = apidocs.resolve("jdk6/test/package-summary.html");
assertThat(packageSummary).exists();
content = readFile(packageSummary);
assertThat(content)
.contains("Top - Copyright © All rights reserved.")
.contains("Header - Copyright © All rights reserved.")
.contains("Footer - Copyright © All rights reserved.");
.contains("Header - Copyright © All rights reserved.");

// IBM dist of adopt-openj9 does not support the footer param
if (!System.getProperty("java.vm.name").contains("OpenJ9")) {
assertThat(content).contains("Footer - Copyright © All rights reserved.");
}
}

/**
Expand Down

0 comments on commit 9040d0d

Please sign in to comment.