2023-10-10 21:22:33 +02:00
|
|
|
/*
|
|
|
|
============================================================
|
|
|
|
This is the "NarrenkarteTest" file from Author: Philipp Kotte
|
|
|
|
written on: 10 / 10 / 2023 at: 21:18
|
|
|
|
============================================================
|
|
|
|
*/
|
|
|
|
package Test.Domain.Karten;
|
|
|
|
|
2023-10-11 18:44:58 +02:00
|
|
|
import static org.junit.Assert.assertEquals;
|
2023-10-26 15:31:14 +02:00
|
|
|
import static org.junit.Assert.assertTrue;
|
2023-10-11 18:44:58 +02:00
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import Domain.Karten.Narrenkarte;
|
|
|
|
|
2023-10-10 21:22:33 +02:00
|
|
|
public class NarrenkarteTest {
|
|
|
|
|
2023-10-26 15:48:44 +02:00
|
|
|
|
2023-10-11 18:44:58 +02:00
|
|
|
@Test
|
|
|
|
public void vierNarren() {
|
2023-10-26 15:31:14 +02:00
|
|
|
Narrenkarte n1 = new Narrenkarte(5);
|
|
|
|
Narrenkarte n2 = new Narrenkarte(6);
|
|
|
|
Narrenkarte n3 = new Narrenkarte(7);
|
|
|
|
Narrenkarte n4 = new Narrenkarte(8);
|
|
|
|
|
|
|
|
assertEquals(n1.getName(), "Narr");
|
|
|
|
assertTrue(5 == n1.getId());
|
|
|
|
assertEquals(n2.getName(), "Narr");
|
|
|
|
assertTrue(6 == n2.getId());
|
|
|
|
assertEquals(n3.getName(), "Narr");
|
|
|
|
assertTrue(7 == n3.getId());
|
|
|
|
assertEquals(n4.getName(), "Narr");
|
|
|
|
assertTrue(8 == n4.getId());
|
|
|
|
|
|
|
|
assertEquals("ID 5: Narr", n1.toString());
|
|
|
|
|
|
|
|
|
2023-10-11 18:44:58 +02:00
|
|
|
}
|
2023-10-10 21:22:33 +02:00
|
|
|
}
|