File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/test/java/org/zwobble/mammoth/tests Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
package org .zwobble .mammoth .tests ;
2
2
3
+ import org .junit .Ignore ;
3
4
import org .junit .Test ;
4
5
import org .zwobble .mammoth .Mammoth ;
5
6
11
12
public class MammothTests {
12
13
@ Test
13
14
public void emptyParagraphsAreIgnoredByDefault () {
14
- assertThat (convertToHtml ("/test-data/empty.docx" ), is ("" ));
15
+ assertThat (convertToHtml ("empty.docx" ), is ("" ));
16
+ }
17
+
18
+ @ Test
19
+ @ Ignore ("WIP" )
20
+ public void docxContainingOneParagraphIsConvertedToSingleParagraphElement () {
21
+ assertThat (
22
+ convertToHtml ("single-paragraph.docx" ),
23
+ is ("<p>Walking on imported air</p>" ));
15
24
}
16
25
17
26
private String convertToHtml (String name ) {
Original file line number Diff line number Diff line change 6
6
public class TestData {
7
7
public static InputStream stream (String name ) {
8
8
try {
9
- return TestData .class .getResource (name ).openStream ();
9
+ return TestData .class .getResource ("/test-data/" + name ).openStream ();
10
10
} catch (IOException exception ) {
11
11
throw new RuntimeException (exception );
12
12
}
You can’t perform that action at this time.
0 commit comments