package net.jrtechs.www.DataStructures; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import org.junit.Test; public class NodeTest { /** * Rigorous Test :-) */ @Test public void testCreation() { assertNotNull(new Node(12.0)); assertNotNull(new Node(12.2, new Node(13.0))); } @Test public void testSetNext() { Node node = new Node<>(13.0); Node node2 = new Node<>(14.5); node.setNext(node2); assertTrue(node.getNext().getData().equals(14.5)); } }