Add: Partial Implementation Of The toString Method And Test in Player.java And PlayerTest.java II.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package it.polimi.ingsw.gc14.Model;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.*;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
@@ -192,4 +193,14 @@ class PlayerTest {
|
||||
Player p = new Player("");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void tostring() {
|
||||
Player p = new Player("test_usr");
|
||||
p.addPrestige(15);
|
||||
p.addFood(7);
|
||||
p.buildingCards.add(new BuildingCard(1,2, 5));
|
||||
p.buildingCards.add(new BuildingCard(2,3, 6));
|
||||
System.out.println(p.toString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user