Fix: HuntTest
This commit is contained in:
@@ -2,6 +2,7 @@ package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building0;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Hunter;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
@@ -65,7 +66,7 @@ class HuntTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("No edge case test")
|
||||
@DisplayName("p2 has building 7")
|
||||
void activateEvent3() {
|
||||
Player p1 = new Player("Giacomo");
|
||||
Player p2 = new Player("xiaomi");
|
||||
@@ -81,6 +82,11 @@ class HuntTest {
|
||||
Hunter hunter3 = new Hunter(1, false);
|
||||
p2.hunters.add(hunter3);
|
||||
|
||||
BuildingCard bc = new BuildingCard(7, 1, 5, 5);
|
||||
p2.addFood(5);
|
||||
bc.buy(p2);
|
||||
|
||||
|
||||
h1.activateEvent(players);
|
||||
assertEquals(6, p1.getPrestigeValue());
|
||||
assertEquals(1, p1.getFoodValue());
|
||||
|
||||
Reference in New Issue
Block a user