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