diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-16 20:49:57 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-16 20:49:57 +0000 |
| commit | 87527240deb25cc9b62b8aa43c8121344fc103f7 (patch) | |
| tree | a5b4fe839265ce0765570896f258ee8cecbe1d2e /src/test/java/org | |
| parent | f3273c7264efce77b804c7bfc1fcff32b408222a (diff) | |
Add stubbed collapsing of HTML nodes
Diffstat (limited to 'src/test/java/org')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/html/HtmlCollapseTests.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/html/HtmlCollapseTests.java b/src/test/java/org/zwobble/mammoth/tests/html/HtmlCollapseTests.java new file mode 100644 index 0000000..18716c6 --- /dev/null +++ b/src/test/java/org/zwobble/mammoth/tests/html/HtmlCollapseTests.java @@ -0,0 +1,17 @@ +package org.zwobble.mammoth.tests.html; + +import org.junit.Test; +import org.zwobble.mammoth.html.Html; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals; +import static org.zwobble.mammoth.util.MammothLists.list; + +public class HtmlCollapseTests { + @Test + public void collapsingDoesNothingToSingleTextNode() { + assertThat( + Html.collapse(list(Html.text("Bluebells"))), + deepEquals(list(Html.text("Bluebells")))); + } +} |
