aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorpacien2018-07-26 11:34:06 +0200
committerpacien2018-07-26 11:34:06 +0200
commit69bc6c2ae35883286d9c2b8cc77d5fa0a8c37351 (patch)
tree26d8635694b9d7f61b77772b29a9c980b632cc2c /src/test/java
parent4d80dd03b75421f2fb40cb89f9634be47b09a779 (diff)
downloadpandoc-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.java27
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 @@
1package org.pacien.pandoc.filter.plantuml;
2
3import org.junit.Assert;
4import org.junit.Test;
5
6import java.io.*;
7import java.net.URISyntaxException;
8import java.nio.file.Files;
9import java.nio.file.Paths;
10
11final 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}