forked from 2211945/WIZARD_PR2_DOP
41 lines
983 B
Java
41 lines
983 B
Java
/*
|
|
============================================================
|
|
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;
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
import org.junit.Test;
|
|
import Domain.Karten.Magierkarte;
|
|
|
|
|
|
public class MagierkarteTest {
|
|
|
|
|
|
@Test
|
|
public void vierMagier() {
|
|
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());
|
|
|
|
}
|
|
|
|
}
|