1
0
Fork 0

Create Person test class

This commit is contained in:
Ethanell 2020-04-01 18:26:34 +02:00
parent a04ebdae04
commit 0fece44edc

23
src/test/TestPerson.java Normal file
View file

@ -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));
}
}