From 7fb92d102212095eef12b74680798289fdff2ea6 Mon Sep 17 00:00:00 2001 From: hertero Date: Tue, 30 Aug 2022 16:04:50 +0200 Subject: [PATCH] Testklasse SimpleListTest90 erstellt --- .../src/solution/SimpleListTest90.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 SimpleLinkedList/src/solution/SimpleListTest90.java diff --git a/SimpleLinkedList/src/solution/SimpleListTest90.java b/SimpleLinkedList/src/solution/SimpleListTest90.java new file mode 100644 index 0000000..2c0f6c6 --- /dev/null +++ b/SimpleLinkedList/src/solution/SimpleListTest90.java @@ -0,0 +1,34 @@ +package solution; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; + +public abstract class SimpleListTest90 { + + //ISimpleList list; + ISimpleList> nodeList; + + protected ISimpleList getInstance1() { + // TODO Auto-generated method stub + return null; + } + + protected ISimpleList> getInstance2() { + // TODO Auto-generated method stub + return null; + } + + @BeforeEach + void setUp() throws Exception{ + nodeList = getInstance2(); + } + + @Test + void testAdd(Node node) { + boolean actual = nodeList.add(node); + + assertEquals(true, actual); + } +}