Skip to content

Commit f018b0e

Browse files
committed
Assume so test is reported is as skipped rather than passed
1 parent 31b9fa0 commit f018b0e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
import static org.hamcrest.CoreMatchers.containsString;
6666
import static org.hamcrest.CoreMatchers.is;
6767
import static org.junit.Assume.assumeThat;
68+
import static org.junit.Assume.assumeTrue;
6869
import static org.mockito.Mockito.mock;
6970
import static org.mockito.Mockito.spy;
7071
import static org.mockito.Mockito.when;
@@ -470,15 +471,13 @@ public void testCustomConfiguration() throws Exception {
470471
}
471472

472473
/**
473-
* Method to test the doclet artifact configuration
474+
* Method to test the doclet artifact configuration.
474475
*
475476
* @throws Exception if any
476477
*/
477478
public void testDoclets() throws Exception {
478-
if (JavaVersion.JAVA_SPECIFICATION_VERSION.isAtLeast("13")) {
479-
// As of JDK 13, the com.sun.javadoc API is no longer supported.
480-
return;
481-
}
479+
480+
assumeTrue(JavaVersion.JAVA_SPECIFICATION_VERSION.isBefore("13"));
482481

483482
// ----------------------------------------------------------------------
484483
// doclet-test: check if the file generated by UmlGraph exists and if

0 commit comments

Comments
 (0)