M431-ShadowHunterGame/tests/condition/ConditionMultipleTest.java
2020-04-18 22:16:49 +02:00

33 lines
704 B
Java

package condition;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import condition.Condition;
import condition.ConditionMultiple;
import condition.ConditionMultipleOR;
import main.Joueur;
class ConditionMultipleTest {
@Test
public void conditionMultipleVideRenvoieTrue() {
Condition condition = new ConditionMultiple();
Joueur j = new Joueur(null);
assertTrue(condition.isTrue(j));
}
@Test
public void conditionMultipleORVideRenvoieFalse() {
Condition condition = new ConditionMultipleOR();
Joueur j = new Joueur(null);
assertFalse(condition.isTrue(j));
}
}