From 69bc6c2ae35883286d9c2b8cc77d5fa0a8c37351 Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 26 Jul 2018 11:34:06 +0200 Subject: Kotlin rewrite, adding diagram options --- .../pacien/pandoc/filter/plantuml/FilterTest.java | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/test/java/org/pacien/pandoc/filter/plantuml/FilterTest.java (limited to 'src/test/java') 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 @@ -package org.pacien.pandoc.filter.plantuml; - -import org.junit.Assert; -import org.junit.Test; - -import java.io.*; -import java.net.URISyntaxException; -import java.nio.file.Files; -import java.nio.file.Paths; - -final public class FilterTest { - - private static final String INPUT_FILE = "/input.json"; - private static final String EXPECTED_FILE = "/expected.json"; - - @Test - public void filterTest() { - try (ByteArrayOutputStream o = new ByteArrayOutputStream()) { - byte[] e = Files.readAllBytes(Paths.get(getClass().getResource(EXPECTED_FILE).toURI())); - Filter.filter(getClass().getResourceAsStream(INPUT_FILE), o); - Assert.assertArrayEquals(o.toByteArray(), e); - } catch (IOException | URISyntaxException e) { - Assert.fail(); - } - } - -} -- cgit v1.2.3