org.mdiutil.junit.OrderedRunner
annotationorg.mdiutil.junit.Order
annotationpublic class MyTest { @Test public void test1() { ... } @Test public void test2() { ... }Nothing prevents the tests to be executed in the order test2() then test1(). To ensure that the order will be test1() then test2(), you can use:
@RunWith(OrderedRunner.class) public class MyTest { @Test @Order(order=1) public void test1() { ... } @Test @Order(order=2) public void test2() { ... }
org.mdiutil.junit.CategoryRunner
annotationorg.mdiutil.junit.Category
annotation for each category the Test Clas belongs toorg.mdiutil.junit.resources
package in the unit tests directory.
strictMode=true editor= server= client=falseOnly Unit Tests annotated by both "editor" and "server" will run.
showSkippedClasses=true editor= server= client=falseIf "showSkippedClasses" value is false, then tests which are not executed will not be shown at all.
strictMode=false long= pack= archi=false
org.docgene.main.DocGenerator
class directly to generate the wiki in Unit tests, you may have the following JVM error:Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit. junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.This error may be due to the fact that the class will exit by executing
System.exit(0)
exiting the JVM before the Unit test class could be executed completely. To fix this problem, you must use the DocGenerator.preventExit(true);
before exeucting the generation. @Test public void testApply() { String[] args = new String[2]; URL url = this.getClass().getResource("input"); File inputFile = new File(url.getFile()); url = this.getClass().getResource("output"); File outputFile = new File(url.getFile()); args[0] = "-output=" + outputFile.getPath(); args[1] = "-input=" + inputFile.getPath(); DocGenerator gene = new DocGenerator(); gene.preventExit(true); gene.launch(args); }
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.