forked from 2211945/WIZARD_PR2_DOP
47 lines
1.0 KiB
Java
47 lines
1.0 KiB
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;
|
|
|
|
/**
|
|
*
|
|
* @author sellm
|
|
* @version
|
|
*
|
|
*
|
|
*/
|
|
|
|
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());
|
|
|
|
}
|
|
|
|
}
|