-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
ctg-bugIssue is a bugIssue is a bug
Description
Description
The "View generated test" button can't find the test method and refers to the first line of the test file
To Reproduce
Generate tests for
public class MyLinkedList {
private Node head;
private Node tail;
public MyLinkedList(Node node) {
head = node;
tail = head;
}
public void add(Node node) {
tail.setNext(node);
tail = node;
}
public int[] toArray() {
Node current = head;
ArrayList<Integer> result = new ArrayList<>();
result.add(head.value);
while (current.hasNext()) {
current = current.next;
result.add(current.value);
}
return result.stream().mapToInt(Integer::intValue).toArray();
}
}
Expected behavior
Link to the test file is correct.
Actual behavior
See the screenshot above
Metadata
Metadata
Assignees
Labels
ctg-bugIssue is a bugIssue is a bug
Type
Projects
Status
Done