diff options
author | pacien | 2018-07-26 11:34:06 +0200 |
---|---|---|
committer | pacien | 2018-07-26 11:34:06 +0200 |
commit | 69bc6c2ae35883286d9c2b8cc77d5fa0a8c37351 (patch) | |
tree | 26d8635694b9d7f61b77772b29a9c980b632cc2c /src/test/java | |
parent | 4d80dd03b75421f2fb40cb89f9634be47b09a779 (diff) | |
download | pandoc-filter-plantuml-69bc6c2ae35883286d9c2b8cc77d5fa0a8c37351.tar.gz |
Kotlin rewrite, adding diagram options
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/pacien/pandoc/filter/plantuml/FilterTest.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/test/java/org/pacien/pandoc/filter/plantuml/FilterTest.java b/src/test/java/org/pacien/pandoc/filter/plantuml/FilterTest.java deleted file mode 100644 index f720b22..0000000 --- a/src/test/java/org/pacien/pandoc/filter/plantuml/FilterTest.java +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | package org.pacien.pandoc.filter.plantuml; | ||
2 | |||
3 | import org.junit.Assert; | ||
4 | import org.junit.Test; | ||
5 | |||
6 | import java.io.*; | ||
7 | import java.net.URISyntaxException; | ||
8 | import java.nio.file.Files; | ||
9 | import java.nio.file.Paths; | ||
10 | |||
11 | final public class FilterTest { | ||
12 | |||
13 | private static final String INPUT_FILE = "/input.json"; | ||
14 | private static final String EXPECTED_FILE = "/expected.json"; | ||
15 | |||
16 | @Test | ||
17 | public void filterTest() { | ||
18 | try (ByteArrayOutputStream o = new ByteArrayOutputStream()) { | ||
19 | byte[] e = Files.readAllBytes(Paths.get(getClass().getResource(EXPECTED_FILE).toURI())); | ||
20 | Filter.filter(getClass().getResourceAsStream(INPUT_FILE), o); | ||
21 | Assert.assertArrayEquals(o.toByteArray(), e); | ||
22 | } catch (IOException | URISyntaxException e) { | ||
23 | Assert.fail(); | ||
24 | } | ||
25 | } | ||
26 | |||
27 | } | ||