diff --git a/app/src/test/java/ch/nuth/zhaw/exbox/ADS1_4_test.java b/app/src/test/java/ch/nuth/zhaw/exbox/ADS1_4_test.java new file mode 100644 index 0000000..ed5218f --- /dev/null +++ b/app/src/test/java/ch/nuth/zhaw/exbox/ADS1_4_test.java @@ -0,0 +1,34 @@ +package ch.nuth.zhaw.exbox; + +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class ADS1_4_test { + WellformedXmlServer xml; + + @BeforeEach + public void setUp() { + xml = new WellformedXmlServer(); + } + + private void test(String content, boolean expected) { + assertEquals(expected, xml.checkWellformed(content), content); + } + + @Test + public void testXmlAttributes() { + test("", true); + } + + @Test + public void testXml() { + test("", true); + test("", false); + test("", false); + test("", true); + test("", true); + test("", false); + } +}