Skip to content

Commit

Permalink
Improved black-box test example in JUnit manual. The export to ALL-UN…
Browse files Browse the repository at this point in the history
…NAMED is needed when test has a suite method.
  • Loading branch information
tzezula committed Jul 12, 2016
1 parent b9183f9 commit 971eace
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manual/Tasks/junit.html
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ <h3>Examples</h3>
&lt;junit fork="true"
jvm="${platform.java}"&gt;
&lt;jvmarg line="-addmods ${test.module.name}"/&gt;
&lt;jvmarg value="-XaddExports:${test.module.name}/my.test=junit"/&gt;
&lt;jvmarg value="-XaddExports:${test.module.name}/my.test=junit,ALL-UNNAMED"/&gt;
&lt;modulepath&gt;
&lt;pathelement path="${modules}:${build.classes}:${libs.junit}"/&gt;
&lt;/modulepath&gt;
Expand All @@ -851,7 +851,7 @@ <h3>Examples</h3>
<p>Runs my.test.TestCase as a black-box test in the forked VM given by the <code>platform.java</code> property.
The junit library is used as an automatic module. The tests module-info requires the tested module and junit.<br/>
The <code>-addmods</code> java option enables the test module.<br/>
The <code>-XaddExports</code> java option makes the non-exported test package <code>my.test</code> accessible from the junit module.
Another possibility is to export the test package in the tests module-info by <code>exports my.test</code> directive<br/>
The <code>-XaddExports</code> java option makes the non-exported test package <code>my.test</code> accessible from the junit module and Ant's test runner.
Another possibility is to export the test package in the tests module-info by <code>exports my.test</code> directive.<br/>
</body>
</html>

0 comments on commit 971eace

Please sign in to comment.