Create Person test class
This commit is contained in:
parent
a04ebdae04
commit
0fece44edc
1 changed files with 23 additions and 0 deletions
23
src/test/TestPerson.java
Normal file
23
src/test/TestPerson.java
Normal 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));
|
||||
}
|
||||
}
|
Reference in a new issue