diff --git a/src/test/TestPerson.java b/src/test/TestPerson.java new file mode 100644 index 0000000..9e2c4c0 --- /dev/null +++ b/src/test/TestPerson.java @@ -0,0 +1,23 @@ +package test; + +import input.Gender; +import input.Order; +import input.Person; +import input.Presentation; + +public class TestPerson { + public static void main(String[] args) { + String flifloo_firstNames[] = {"Florian", "Alain"}; + Person flifloo = new Person("Charlaix", flifloo_firstNames, Gender.MEN, null, null, "Student"); + String hugo_firstNames[] = {"Hugo"}; + Person hugo = new Person("Torres", hugo_firstNames, Gender.MEN, flifloo, null, "Student"); + flifloo.spouse = hugo; + + Person test[] = {flifloo, hugo}; + + for (Person pe: test) + for (Presentation p: Presentation.values()) + for (Order o: Order.values()) + System.out.println(pe.toString(p, o)); + } +}