From 1e0b916ce29a1e2cb53e3eb4d0190ab000a2a066 Mon Sep 17 00:00:00 2001 From: Richard Schmidt <richard.schmidt@mailbox.tu-dresden.de> Date: Wed, 31 Jul 2019 15:01:22 +0200 Subject: [PATCH] Testing (unfinished) --- .../csvparser/CsvDotParserTest.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/test/java/de/tudresden/inf/mci/brailleplot/csvparser/CsvDotParserTest.java diff --git a/src/test/java/de/tudresden/inf/mci/brailleplot/csvparser/CsvDotParserTest.java b/src/test/java/de/tudresden/inf/mci/brailleplot/csvparser/CsvDotParserTest.java new file mode 100644 index 00000000..dbf85d26 --- /dev/null +++ b/src/test/java/de/tudresden/inf/mci/brailleplot/csvparser/CsvDotParserTest.java @@ -0,0 +1,31 @@ +package de.tudresden.inf.mci.brailleplot.csvparser; + +import de.tudresden.inf.mci.brailleplot.datacontainers.PointList; +import de.tudresden.inf.mci.brailleplot.datacontainers.PointListContainer; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import java.util.List; + +public class CsvDotParserTest { + + CsvDotParser parser = new CsvDotParser(); + List<? extends List<String>> csvDataHorizontal = ; + List<? extends List<String>> csvDataVertical = ; + PointListContainer<PointList> resultHorizontal = ; + PointListContainer<PointList> resultVertical = ; + + @Test + public void testHorizontalParsing () { + Assertions.assertEquals(resultHorizontal, () -> { + parser.parseAsHorizontalDataSets(csvDataHorizontal); + }); + } + + @Test + public void testVerticalParsing () { + Assertions.assertEquals(resultVertical, () -> { + parser.parseAsHorizontalDataSets(csvDataVertical); + }); + } +} -- GitLab