Working regression tests
This commit is contained in:
parent
17bf5a9259
commit
44ffd9f3ed
3 changed files with 45 additions and 96 deletions
|
@ -14,16 +14,18 @@ public class ListInSection {
|
|||
@Test
|
||||
@DisplayName("List in section")
|
||||
void testExample() throws Exception {
|
||||
String testName = "list_in_section";
|
||||
String name = "list_in_section";
|
||||
File input = new File("./testdocuments/input/" + name + ".odt");
|
||||
assertTrue(input.exists());
|
||||
List<String> arguments = new ArrayList<String>();
|
||||
arguments.add("-page_break_style");
|
||||
arguments.add("height:3em;margin-top:1em;margin-bottom:1em;background-color:red;");
|
||||
arguments.add("-html5");
|
||||
arguments.add("./testdocuments/input/" + testName + ".odt");
|
||||
arguments.add("./testdocuments/output/" + testName + ".html");
|
||||
arguments.add("./testdocuments/input/" + name + ".odt");
|
||||
arguments.add("./testdocuments/output/" + name + ".html");
|
||||
w2phtml.Application.main(arguments.toArray(new String[0]));
|
||||
File result = new File("./testdocuments/output/" + testName + ".html");
|
||||
File model = new File("./testdocuments/model/" + testName + ".html");
|
||||
File result = new File("./testdocuments/output/" + name + ".html");
|
||||
File model = new File("./testdocuments/model/" + name + ".html");
|
||||
assertTrue(FileUtils.contentEquals(result, model), "The files differ!");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,11 +10,11 @@ import org.apache.commons.io.FileUtils;
|
|||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ListInTableInSection {
|
||||
public class ListInTable {
|
||||
@Test
|
||||
@DisplayName("list in table in section")
|
||||
@DisplayName("list in table")
|
||||
void testExample() throws Exception {
|
||||
String testName = "list_in_table_in_section";
|
||||
String testName = "list_in_table";
|
||||
List<String> arguments = new ArrayList<String>();
|
||||
arguments.add("-page_break_style");
|
||||
arguments.add("height:3em;margin-top:1em;margin-bottom:1em;background-color:red;");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue