1
0
Fork 0
WIZARD_PR2_DOP22/Test/Domain/Karten/MagierkarteTest.java

41 lines
983 B
Java
Raw Normal View History

/*
============================================================
This is the "MagierkarteTest" file from Author: Philipp Kotte
written on: 10 / 10 / 2023 at: 21:18
============================================================
*/
package Test.Domain.Karten;
import static org.junit.Assert.assertEquals;
2023-10-26 15:31:14 +02:00
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import Domain.Karten.Magierkarte;
public class MagierkarteTest {
2023-10-26 15:48:44 +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());
}
}