Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinícius Teixeira committed Sep 17, 2019
1 parent 4fd0b35 commit fde47f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pucrs/qp/exercicio/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void setNext(Node next) {
}

public Node(String data, Node next) {
this.data = this.data;
this.data = data;
this.next = next;
}

Expand Down
12 changes: 12 additions & 0 deletions src/test/java/pucrs/qp/exercicio/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ public void testNextIsNotNull() {
assertEquals(nodo.getNext(), subNode);
}

@Test
public void testNodeData() {
Node nodo = new Node("Outro nodo", null);
assertEquals(nodo.getData(), "Outro nodo");
}

// @Test
// public void testNodeDataSetData() {
// Node nodo = new Node("Outro nodo", null);
// assertEquals(nodo.getData(), "Outro nodo");
// }

}

0 comments on commit fde47f4

Please sign in to comment.