@SpringBootTest
public class PlayerHandlerImplTest
extends java.lang.Object
PlayerHandlerImpl
| Modifier and Type | Field and Description |
|---|---|
static GamePlayPhase |
gamePlayPhase |
static int |
NUMBER_OF_PLAYER |
static RiskMap |
riskMap |
static java.util.List<java.lang.String> |
territoryList |
static java.lang.String |
VALID_CONQUEST_MAP_NAME |
static java.lang.String |
VALID_MAP_NAME |
static java.lang.String |
VALID_SMALL_MAP1 |
| Constructor and Description |
|---|
PlayerHandlerImplTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
getStrategyByNameTest()
This method will test getStrategyByNameTest which will return the object as defined by strategy
if strategy is not present in strategy list than it returns null
|
void |
getStrategyByNameTestAggresive()
This method will test getStrategyByNameTest which will return the object as defined by strategy
if strategy is not present in strategy list than it returns null
|
void |
getStrategyByNameTestBenevolent()
This method will test getStrategyByNameTest which will return the object as defined by strategy
if strategy is not present in strategy list than it returns null
|
void |
getStrategyByNameTestCheater()
This method will test getStrategyByNameTest which will return the object as defined by strategy
if strategy is not present in strategy list than it returns null
|
void |
getStrategyByNameTestHuman()
This method will test getStrategyByNameTest which will return the object as defined by strategy
if strategy is not present in strategy list than it returns null
|
void |
getStrategyByNameTestRandom()
This method will test getStrategyByNameTest which will return the object as defined by strategy
if strategy is not present in strategy list than it returns null
|
void |
inValidTestForFindTotalArmy()
Test for inValidTestForFindTotalArmy.
|
void |
notEmptyTerritoriesTest()
Test for notEmptyTerritoriesTest.
|
void |
populateTerritoriesRandomlyTest()
This method will Test populateTerritoriesRandomly which will populate
countries randomly to player return same Gameplayphase object true if
Gameplayephase is equal.
|
void |
populateTerritoriesRandomlyTestForConquest()
This method will Test populateTerritoriesRandomly For Conquest Map File which will populate
countries randomly to player return same Gameplayphase object true if
Gameplayephase is equal.
|
void |
setup()
Setup methods to set objects
|
void |
testGetTerritories()
This method will Test GetTerritories method of Player Handler, which will
return number of territories from provided map.
|
void |
validPlaceAllArmyByRoundRobin()
This method will test placeAllArmyByRoundRobin which will place all
armies in round robin manner to each player return same Gameplayphase object true if
Gameplayephase is equal.
|
void |
validTestForFindTotalArmy()
Test for validTestForFindTotalArmy.
|
public static final int NUMBER_OF_PLAYER
public static final java.lang.String VALID_MAP_NAME
public static final java.lang.String VALID_SMALL_MAP1
public static final java.lang.String VALID_CONQUEST_MAP_NAME
public static final java.util.List<java.lang.String> territoryList
public static RiskMap riskMap
public static GamePlayPhase gamePlayPhase
public void setup()
public void validTestForFindTotalArmy()
public void inValidTestForFindTotalArmy()
public void notEmptyTerritoriesTest()
public void testGetTerritories()
public void populateTerritoriesRandomlyTest()
public void populateTerritoriesRandomlyTestForConquest()
public void validPlaceAllArmyByRoundRobin()
public void getStrategyByNameTest()
public void getStrategyByNameTestHuman()
public void getStrategyByNameTestAggresive()
public void getStrategyByNameTestBenevolent()
public void getStrategyByNameTestRandom()
public void getStrategyByNameTestCheater()