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
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,12 @@ class ExercicesBouclesTest { ...@@ -21,7 +21,12 @@ class ExercicesBouclesTest {
Person mother, Person mother,
Person father, Person father,
List<Person> children List<Person> children
) implements Person {} ) implements Person {
@Override
public String toString() {
return this.name;
}
}
private static final Person alfa = private static final Person alfa =
new MockPerson(78,"Alfa",true,null,null, new ArrayList<>()); 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