// 2 public void testCreateNewLinkListWithObjectList() { List<Node> nodes = createNewNodes(); SingleLinkedList list = new SingleLinkedList(nodes); assertEquals(nodes, list.getList()); }
// 1 public void testCreateNewLinkListWithEmptyList() { List<Node> nodes = new ArrayList<Node>(); SingleLinkedList linkedList = new SingleLinkedList(nodes); assertTrue(linkedList.getList().isEmpty()); }