Skip to content
Snippets Groups Projects
Commit 12c7911f authored by Guyslain's avatar Guyslain
Browse files

correction toString de MockPerson, pour éviter des stackOverflow.

parent 7571e951
Branches
No related tags found
No related merge requests found
......@@ -21,7 +21,12 @@ class ExercicesBouclesTest {
Person mother,
Person father,
List<Person> children
) implements Person {}
) implements Person {
@Override
public String toString() {
return this.name;
}
}
private static final Person alfa =
new MockPerson(78,"Alfa",true,null,null, new ArrayList<>());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment