2023-10-10 21:22:33 +02:00
|
|
|
/*
|
|
|
|
============================================================
|
|
|
|
This is the "MagierkarteTest" file from Author: Philipp Kotte
|
|
|
|
written on: 10 / 10 / 2023 at: 21:18
|
|
|
|
============================================================
|
|
|
|
*/
|
|
|
|
package Test.Domain.Karten;
|
|
|
|
|
2023-10-25 12:36:07 +02:00
|
|
|
import static org.junit.Assert.assertEquals;
|
2023-10-26 15:31:14 +02:00
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
|
2023-10-25 12:36:07 +02:00
|
|
|
import org.junit.Test;
|
2023-10-12 08:20:31 +02:00
|
|
|
import Domain.Karten.Magierkarte;
|
|
|
|
|
2023-10-18 16:00:16 +02:00
|
|
|
|
2023-10-10 21:22:33 +02:00
|
|
|
public class MagierkarteTest {
|
|
|
|
|
2023-10-26 15:48:44 +02:00
|
|
|
|
2023-10-12 08:20:31 +02:00
|
|
|
@Test
|
|
|
|
public void vierMagier() {
|
2023-10-26 15:31:14 +02:00
|
|
|
Magierkarte m1 = new Magierkarte(1);
|
|
|
|
Magierkarte m2 = new Magierkarte(2);
|
|
|
|
Magierkarte m3 = new Magierkarte(3);
|
|
|
|
Magierkarte m4 = new Magierkarte(4);
|
|
|
|
|
|
|
|
|
|
|
|
assertEquals("Zauberer", m1.getName());
|
|
|
|
assertTrue(1 == m1.getId());
|
|
|
|
assertEquals("Zauberer", m2.getName());
|
|
|
|
assertTrue(2 == m2.getId());
|
|
|
|
assertEquals("Zauberer", m3.getName());
|
|
|
|
assertTrue(3 == m3.getId());
|
|
|
|
assertEquals("Zauberer", m4.getName());
|
|
|
|
assertTrue(4 == m4.getId());
|
|
|
|
|
|
|
|
assertEquals("ID 1: Zauberer", m1.toString());
|
2023-10-25 12:36:07 +02:00
|
|
|
|
2023-10-12 08:20:31 +02:00
|
|
|
}
|
2023-10-25 12:36:07 +02:00
|
|
|
|
2023-10-10 21:22:33 +02:00
|
|
|
}
|