From 0fece44edc68c92d966ea5a82051a18bedb169f3 Mon Sep 17 00:00:00 2001 From: flifloo Date: Wed, 1 Apr 2020 18:26:34 +0200 Subject: [PATCH] Create Person test class --- src/test/TestPerson.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/test/TestPerson.java 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)); + } +}