diff options
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java b/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java index 338776e..295814a 100644 --- a/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java @@ -53,7 +53,7 @@ public class DocumentConverterTests { } @Test - public void styleMappingsUsingStyleIdsCanBeUsedToMapParagraphs() { + public void paragraphStyleMappingsCanBeUsedToMapParagraphs() { assertThat( convertToHtml( make(a(PARAGRAPH, with(STYLE, Optional.of(new Style("TipsParagraph", Optional.empty()))))), @@ -67,20 +67,6 @@ public class DocumentConverterTests { } @Test - public void styleMappingsUsingStyleNamesCanBeUsedToMapParagraphs() { - assertThat( - convertToHtml( - make(a(PARAGRAPH, with(STYLE, Optional.of(new Style("TipsParagraph", Optional.of("Tips Paragraph")))))), - StyleMap.builder() - .mapParagraph( - ParagraphMatcher.styleName("Tips Paragraph"), - HtmlPath.element("p", map("class", "tip"))) - .build()), - - deepEquals(list(Html.element("p", map("class", "tip"))))); - } - - @Test public void boldRunsAreWrappedInStrongTags() { assertThat( convertToHtml(make(a(RUN, with(BOLD, true), with(CHILDREN, list(new Text("Hello")))))), |
