Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
560 0 0 2 99.643% 52.104

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
com.takenoko.bot.utils 8 0 0 0 100% 3.997
com.takenoko.stats 11 0 0 0 100% 0.097
com.takenoko.shape 40 0 0 0 100% 0.834
com.takenoko.weather 21 0 0 0 100% 2.356
com.takenoko.asset 35 0 0 0 100% 0.361
com.takenoko.actions.improvement 6 0 0 0 100% 0.035
com.takenoko.layers.tile 46 0 0 0 100% 0.598
com.takenoko.actions.irrigation 4 0 0 0 100% 0.018
com.takenoko.actions.bamboo 2 0 0 0 100% 0.012
com.takenoko.actors 22 0 0 0 100% 5.476
com.takenoko.vector 17 0 0 0 100% 0.142
com.takenoko.layers.bamboo 52 0 0 0 100% 0.593
com.takenoko.engine 137 0 0 0 100% 26.193
com.takenoko.actions.objective 8 0 0 0 100% 0.034
com.takenoko.actions.weather 3 0 0 0 100% 0.017
com.takenoko.bot.utils.pathfinding.gardener 1 0 0 0 100% 0.006
com.takenoko.actions.tile 6 0 0 0 100% 0.042
com.takenoko.ui 5 0 0 0 100% 0.092
com.takenoko.bot.irrigation.pathfinding 3 0 0 0 100% 7.214
com.takenoko.bot 12 0 0 1 91.667% 0.178
com.takenoko.actions.actors 6 0 0 0 100% 0.032
com.takenoko.objective 62 0 0 1 98.387% 0.473
com.takenoko.bot.unitary 8 0 0 0 100% 0.224
com.takenoko.layers.irrigation 23 0 0 0 100% 2.842
com.takenoko.bot.utils.pathfinding.panda 1 0 0 0 100% 0.008
com.takenoko.inventory 21 0 0 0 100% 0.23

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

com.takenoko.bot.utils

Class Tests Errors Failures Skipped Success Rate Time
HistoryAnalysisTest$AnalyzeRushPanda 2 0 0 0 100% 0.106
HistoryAnalysisTest$GetGameProgress 3 0 0 0 100% 0.009
HistoryAnalysisTest 0 0 0 0 0% 2.006
HistoryAnalysisTest$GetCurrentBotScores 1 0 0 0 100% 0.002
HistoryAnalysisTest$GetMaxCurrentBotScore 1 0 0 0 100% 0.002
HistoryAnalysisTest$IntegrationTest 1 0 0 0 100% 1.872

com.takenoko.stats

Class Tests Errors Failures Skipped Success Rate Time
HistoryStatisticsItemTest 1 0 0 0 100% 0.002
BotCSVExporterTest 0 0 0 0 0% 0.01
GameProgressStatisticsTest$TestHashCode 2 0 0 0 100% 0.002
GameProgressStatisticsTest 1 0 0 0 100% 0.029
BotCSVExporterTest$ReadData 1 0 0 0 100% 0.001
GameProgressStatisticsTest$TestEquals 4 0 0 0 100% 0.005
BotCSVExporterTest$WriteData 2 0 0 0 100% 0.003
GameProgressStatisticsTest 0 0 0 0 0% 0.045

com.takenoko.shape

Class Tests Errors Failures Skipped Success Rate Time
ShapeTest 0 0 0 0 0% 0.054
ShapeTest$TestTranslate 3 0 0 0 100% 0.006
PatternTest$TestHashCode 2 0 0 0 100% 0.006
ShapeTest$TestHashCode 4 0 0 0 100% 0.005
PatternTest$Constructor 1 0 0 0 100% 0.003
ShapeTest$TestEquals 6 0 0 0 100% 0.006
ShapeTest$TestParameterizedConstructor 1 0 0 0 100% 0.004
PatternTest$TestMatch 3 0 0 0 100% 0.032
PatternTest$TestGetSubsetMatchPattern 1 0 0 0 100% 0.025
PatternTest 1 0 0 0 100% 0.281
PatternTest$TestEquals 4 0 0 0 100% 0.008
PatternFactoryTest$TestCreateLine 4 0 0 0 100% 0.005
ShapeTest$TestGetRotatedShape 4 0 0 0 100% 0.004
ShapeTest$TestRotate60 3 0 0 0 100% 0.004
ShapeTest$TestGetMissingShape 2 0 0 0 100% 0.005
PatternTest 0 0 0 0 0% 0.367
ShapeTest$TestToString 1 0 0 0 100% 0.003
PatternFactoryTest 0 0 0 0 0% 0.016

com.takenoko.weather

Class Tests Errors Failures Skipped Success Rate Time
SunnyTest$Revert 1 0 0 0 100% 0.002
DiceTest$Roll 1 0 0 0 100% 0.01
CloudyTest$TestApply 1 0 0 0 100% 0.015
RainyTest$Apply 2 0 0 0 100% 0.864
CloudyTest 0 0 0 0 0% 0.03
WeatherDiceTest 0 0 0 0 0% 0.219
DiceTest$Peek 1 0 0 0 100% 0.008
WeatherDiceTest$RollWeather 1 0 0 0 100% 0.217
SunnyTest 0 0 0 0 0% 0.018
DiceTest$HashCode 2 0 0 0 100% 0.007
DiceTest 0 0 0 0 0% 0.047
CloudyTest$TestRevert 1 0 0 0 100% 0.005
RainyTest 0 0 0 0 0% 0.874
SunnyTest$Apply 2 0 0 0 100% 0.005
DiceTest$Equals 5 0 0 0 100% 0.007
QuestionMarkTest 0 0 0 0 0% 0.005
WindyTest 2 0 0 0 100% 0.019
QuestionMarkTest$Apply 2 0 0 0 100% 0.004

com.takenoko.asset

Class Tests Errors Failures Skipped Success Rate Time
GameAssetsTest$TestCopy 1 0 0 0 100% 0.04
ImprovementDeckTest$TestHashCode 2 0 0 0 100% 0.002
GameAssetsTest$TestEquals 4 0 0 0 100% 0.011
ObjectiveDeckTest$TestGetStarterDeck 1 0 0 0 100% 0.023
ObjectiveDeckTest 1 0 0 0 100% 0.001
TileDeckTest$Equals 4 0 0 0 100% 0.005
GameAssetsTest$TestHashCode 2 0 0 0 100% 0.016
ObjectiveDeckTest 0 0 0 0 0% 0.026
TileDeckTest$HashCode 2 0 0 0 100% 0.005
TileDeckTest$Choose 1 0 0 0 100% 0.002
TileDeckTest$Constructor 1 0 0 0 100% 0.003
IrrigationDeckTest 4 0 0 0 100% 0.002
ImprovementDeckTest$TestEquals 4 0 0 0 100% 0.004
ImprovementDeckTest$TestDraw 2 0 0 0 100% 0.002
GameAssetsTest 0 0 0 0 0% 0.069
TileDeckTest 0 0 0 0 0% 0.077
ImprovementDeckTest$TestHasImprovement 2 0 0 0 100% 0.001
ImprovementDeckTest 0 0 0 0 0% 0.013
TileDeckTest$DrawAndPeek 2 0 0 0 100% 0.004
ImprovementDeckTest$TestConstructor 1 0 0 0 100% 0.001
TileDeckTest$Bug1Fix 1 0 0 0 100% 0.054

com.takenoko.actions.improvement

Class Tests Errors Failures Skipped Success Rate Time
ApplyImprovementActionTest$Execute 1 0 0 0 100% 0.002
DrawImprovementActionTest 0 0 0 0 0% 0.006
StoreImprovementActionTest$Execute 1 0 0 0 100% 0.003
ApplyImprovementFromInventoryActionTest$TestExecute 1 0 0 0 100% 0.004
ApplyImprovementActionTest 0 0 0 0 0% 0.005
DrawImprovementActionTest$TestApply 3 0 0 0 100% 0.003
StoreImprovementActionTest 0 0 0 0 0% 0.005
ApplyImprovementFromInventoryActionTest 0 0 0 0 0% 0.007

com.takenoko.layers.tile

Class Tests Errors Failures Skipped Success Rate Time
TileLayerTest$TestGetAvailableTiles 1 0 0 0 100% 0.002
TileLayerTest$TestUpdateAvailableTilePositions 3 0 0 0 100% 0.018
TileTest$TestHashCode 4 0 0 0 100% 0.004
TileLayerTest$TestGetAvailableImprovementPositions 5 0 0 0 100% 0.035
TileTest$TestEquals 5 0 0 0 100% 0.013
TileTest$TestGetType 2 0 0 0 100% 0.009
TileLayerTest$TestCopy 1 0 0 0 100% 0.004
TileTest$TestSetImprovementAndGetImprovement 3 0 0 0 100% 0.018
TileLayerTest 0 0 0 0 0% 0.24
TileLayerTest$TestGetTiles 1 0 0 0 100% 0.004
TileLayerTest$TestApplyImprovement 1 0 0 0 100% 0.1
TileLayerTest$TestGetTilesWithoutPond 1 0 0 0 100% 0.002
TileLayerTest$TestEquals 5 0 0 0 100% 0.017
TileTest 0 0 0 0 0% 0.083
TileLayerTest$TestPlaceTile 6 0 0 0 100% 0.028
TileTest$TestCopy 4 0 0 0 100% 0.01
TileTest$TestGetColor 1 0 0 0 100% 0.003
TileLayerTest$TestHashCode 2 0 0 0 100% 0.004
TileTest$TestToString 1 0 0 0 100% 0.004

com.takenoko.actions.irrigation

Class Tests Errors Failures Skipped Success Rate Time
PlaceIrrigationActionTest 0 0 0 0 0% 0.007
PlaceIrrigationFromInventoryActionTest 0 0 0 0 0% 0.005
PlaceIrrigationActionTest$Execute 3 0 0 0 100% 0.004
PlaceIrrigationFromInventoryActionTest$TestExecute 1 0 0 0 100% 0.002

com.takenoko.actions.bamboo

Class Tests Errors Failures Skipped Success Rate Time
GrowBambooActionTest$Execute 2 0 0 0 100% 0.004
GrowBambooActionTest 0 0 0 0 0% 0.008

com.takenoko.actors

Class Tests Errors Failures Skipped Success Rate Time
GardenerTest$TestAfterMove 3 0 0 0 100% 0.08
PandaTest 0 0 0 0 0% 2.695
GardenerTest$TestPositionMessage 1 0 0 0 100% 0.022
GardenerTest$TestCopy 1 0 0 0 100% 0.01
PandaTest$TestPositionMessage 1 0 0 0 100% 0.031
PandaTest$TestGetPosition 1 0 0 0 100% 0.004
PandaTest$TestHashCode 2 0 0 0 100% 0.174
PandaTest$TestMove 2 0 0 0 100% 0.034
PandaTest$TestAfterMove 2 0 0 0 100% 0.083
PandaTest$TestGetPossibleMoves 2 0 0 0 100% 0.07
PandaTest$TestEquals 4 0 0 0 100% 0.078
GardenerTest 0 0 0 0 0% 0.13
GardenerTest$TestConstructor 2 0 0 0 100% 0.003
PandaTest$TestCopy 1 0 0 0 100% 2.062

com.takenoko.vector

Class Tests Errors Failures Skipped Success Rate Time
VectorTest$TestLength 1 0 0 0 100% 0.003
VectorTest$TestConstructor 2 0 0 0 100% 0.003
VectorTest$TestNormalize 1 0 0 0 100% 0.004
VectorTest$TestSub 1 0 0 0 100% 0.001
VectorTest$TestMultiply 3 0 0 0 100% 0.01
VectorTest$TestRotate60 1 0 0 0 100% 0.004
VectorTest$TestDistance 1 0 0 0 100% 0.003
VectorTest 0 0 0 0 0% 0.098
VectorTest$TestEquals 4 0 0 0 100% 0.009
VectorTest$TestAdd 1 0 0 0 100% 0.001
VectorTest$TestHashcode 2 0 0 0 100% 0.006

com.takenoko.layers.bamboo

Class Tests Errors Failures Skipped Success Rate Time
BambooLayerTest$TestEquals 4 0 0 0 100% 0.008
BambooLayerTest$TestGrowBamboo 5 0 0 0 100% 0.032
LayerBambooStackTest$TestRemoveBamboo 2 0 0 0 100% 0.01
BambooStackTest$TestIsEmpty 2 0 0 0 100% 0.003
BambooLayerTest$TestHashCode 2 0 0 0 100% 0.006
BambooLayerTest$TestIsGrowableAt 3 0 0 0 100% 0.095
BambooLayerTest$TestGetBambooAt 3 0 0 0 100% 0.015
BambooStackTest 0 0 0 0 0% 0.039
LayerBambooStackTest$TestEquals 4 0 0 0 100% 0.007
BambooLayerTest 0 0 0 0 0% 0.23
BambooStackTest$TestCopy 1 0 0 0 100% 0.004
BambooStackTest$TestAddBamboo 1 0 0 0 100% 0.002
LayerBambooStackTest$TestGetBamboo 1 0 0 0 100% 0.001
LayerBambooStackTest$TestIsGrowable 2 0 0 0 100% 0.02
BambooLayerTest$TestRemoveBamboo 3 0 0 0 100% 0.012
LayerBambooStackTest$TestAddBamboo 2 0 0 0 100% 0.003
BambooLayerTest$TestIsEatableAt 3 0 0 0 100% 0.01
LayerBambooStackTest$TestCopy 1 0 0 0 100% 0.006
BambooLayerTest$TestCopy 1 0 0 0 100% 0.004
BambooStackTest$TestHashCode 2 0 0 0 100% 0.003
LayerBambooStackTest$TestIsEatable 2 0 0 0 100% 0.004
BambooStackTest$TestRemoveBamboo 2 0 0 0 100% 0.003
LayerBambooStackTest 0 0 0 0 0% 0.067
BambooStackTest$TestEquals 4 0 0 0 100% 0.004
LayerBambooStackTest$TestHashCode 2 0 0 0 100% 0.005

com.takenoko.engine

Class Tests Errors Failures Skipped Success Rate Time
GameEngineTest$TestNewGame 4 0 0 0 100% 0.017
GameEngineTest$TestRunGame 3 0 0 0 100% 10.709
SingleBotStatisticsTest$TestUpdateActions 5 0 0 0 100% 0.057
SingleBotStatisticsTest 1 0 0 0 100% 0.001
BotStateTest$TestGetObjectiveScore 1 0 0 0 100% 0.004
ScoreboardTest 0 0 0 0 0% 0.011
BotStateTest 0 0 0 0 0% 0.197
HistoryTest$Equals 6 0 0 0 100% 0.01
GameEngineTest$TestEndGame 0 0 0 0 0% 0.074
HistoryTest$SetCurrentBotManagerUUID 1 0 0 0 100% 0.002
SingleBotStatisticsTest$TestIncrementation 4 0 0 0 100% 0.003
SingleBotStatisticsTest$TestUpdateWeathersRolled 4 0 0 0 100% 0.005
BoardTest$TestApplyImprovement 1 0 0 0 100% 0.008
SingleBotStatisticsTest$TestUpdateObjectivesRedeemed 4 0 0 0 100% 0.011
BotManagerTest 0 0 0 0 0% 0.394
BotManagerTest$TestGetNumberOfActions 1 0 0 0 100% 0.002
GameEngineTest$TestStartGame$TestStartGame_WhenStartedCorrectly 1 0 0 0 100% 0.004
GameEngineTest$TestStartGame 2 0 0 0 100% 0.007
BoardStatisticsTest$TestUpdateObjectivesRedeemed 4 0 0 0 100% 0.006
HistoryTest$Copy 1 0 0 0 100% 0.002
HistoryTest 0 0 0 0 0% 0.11
GameEngineTest$TestStartGame$TestStartGame_WhenStartedIncorrectly 3 0 0 0 100% 0.008
BoardTest$TestHashCode 2 0 0 0 100% 0.019
GameEngineTest$TestGetWinner 3 0 0 0 100% 0.83
HistoryTest$AddBotManager 1 0 0 0 100% 0.001
BoardTest$TestNextRound 2 0 0 0 100% 0.007
BoardTest 15 0 0 0 100% 0.037
HistoryTest$GetLatestHistoryItems 1 0 0 0 100% 0.012
SingleBotStatisticsTest$TestUpdateEatenBambooCounter 4 0 0 0 100% 0.007
BoardTest 0 0 0 0 0% 0.117
BotStateTest$TestHashCode 2 0 0 0 100% 0.009
BoardTest$TestEquals 4 0 0 0 100% 0.009
SingleBotStatisticsTest 0 0 0 0 0% 0.219
BotStateTest$TestGetPandaObjectiveScore 3 0 0 0 100% 0.052
BotStateTest 1 0 0 0 100% 0.065
BotStateTest$TestEquals 5 0 0 0 100% 0.018
SingleBotStatisticsTest$TestUpdateWeathersApplied 4 0 0 0 100% 0.052
BoardStatisticsTest 0 0 0 0 0% 0.33
GameEngineTest$TestStartGame 0 0 0 0 0% 0.026
GameEngineTest$TestEndGame$TestEndGame_WhenEndedIncorrectly 2 0 0 0 100% 0.034
GameEngineTest$TestEndGame 3 0 0 0 100% 0.02
GameEngineTest 0 0 0 0 0% 11.764
BotStateTest$TestGetAvailableActions 2 0 0 0 100% 0.01
GameEngineTest$Playgame 4 0 0 0 100% 0.08
BoardTest$TestCopy 1 0 0 0 100% 0.006
SingleBotStatisticsTest$TestUpdateTilesPlacedCounter 4 0 0 0 100% 0.041
HistoryTest$HashCode 4 0 0 0 100% 0.061
BotStateTest$TestUpdateAvailableActions 5 0 0 0 100% 0.007
BotStateTest$TestCopy 1 0 0 0 100% 0.002
BoardStatisticsTest$TestAnalyzeBoard 2 0 0 0 100% 0.31
BotManagerTest$TestDisplayMessage 1 0 0 0 100% 0.005
BotManagerTest 5 0 0 0 100% 0.379
SingleBotStatisticsTest$TestUpdatePlantedBamboo 4 0 0 0 100% 0.017
ScoreboardTest$TestAddBotManager 2 0 0 0 100% 0.003
ScoreboardTest 4 0 0 0 100% 0.002

com.takenoko.actions.objective

Class Tests Errors Failures Skipped Success Rate Time
DrawObjectiveActionTest$TestExecute 2 0 0 0 100% 0.003
DrawObjectiveActionTest$TestCanBePlayed 3 0 0 0 100% 0.004
DrawObjectiveActionTest 0 0 0 0 0% 0.013
RedeemObjectiveActionTest 0 0 0 0 0% 0.009
RedeemObjectiveActionTest$TestExecute 3 0 0 0 100% 0.005

com.takenoko.actions.weather

Class Tests Errors Failures Skipped Success Rate Time
ChooseAndApplyWeatherActionTest 0 0 0 0 0% 0.006
ChooseIfApplyWeatherActionTest$Execute 2 0 0 0 100% 0.003
ChooseIfApplyWeatherActionTest 0 0 0 0 0% 0.005
ChooseAndApplyWeatherActionTest$TestApply 1 0 0 0 100% 0.003

com.takenoko.bot.utils.pathfinding.gardener

Class Tests Errors Failures Skipped Success Rate Time
GardenerPathfindingTest 0 0 0 0 0% 0.004
GardenerPathfindingTest$GetPosition 1 0 0 0 100% 0.002

com.takenoko.actions.tile

Class Tests Errors Failures Skipped Success Rate Time
DrawTileActionTest 0 0 0 0 0% 0.006
DrawTileActionTest$TestExecute 2 0 0 0 100% 0.003
PlaceTileActionTest 0 0 0 0 0% 0.011
PlaceTileWithImprovementActionTest$TestExecute 1 0 0 0 100% 0.006
PlaceTileActionTest$TestExecute 3 0 0 0 100% 0.007
PlaceTileWithImprovementActionTest 0 0 0 0 0% 0.009

com.takenoko.ui

Class Tests Errors Failures Skipped Success Rate Time
ConsoleUserInterfaceTest$DisplayMessage 5 0 0 0 100% 0.043
ConsoleUserInterfaceTest 0 0 0 0 0% 0.049

com.takenoko.bot.irrigation.pathfinding

Class Tests Errors Failures Skipped Success Rate Time
IrrigationPathFindingTest 0 0 0 0 0% 3.609
IrrigationPathFindingTest$GetIrrigationToPlace 3 0 0 0 100% 3.605

com.takenoko.bot

Class Tests Errors Failures Skipped Success Rate Time
FullRandomBotTest 0 0 0 0 0% 0.023
ColletBotTest 0 0 0 0 0% 0.069
GeneralTacticBotTest$TestAnalyzeBoardToFindPlaceToCompleteShapeOfPatternObjective 1 0 0 1 0% 0
ColletBotTest$IntegrationTests 4 0 0 0 100% 0.066
FullRandomBotTest$TestChooseAction 7 0 0 0 100% 0.02

com.takenoko.actions.actors

Class Tests Errors Failures Skipped Success Rate Time
MoveGardenerActionTest 0 0 0 0 0% 0.013
MoveGardenerActionTest$TestCanBePlayed 2 0 0 0 100% 0.002
MovePandaActionTest$TestExecute 2 0 0 0 100% 0.005
MoveGardenerActionTest$TestExecute 2 0 0 0 100% 0.005
MovePandaActionTest 0 0 0 0 0% 0.007

com.takenoko.objective

Class Tests Errors Failures Skipped Success Rate Time
PandaObjectiveTest$TestGetCompletion 3 0 0 0 100% 0.007
PandaObjectiveTest$TestGetWhereToEatToComplete 3 0 0 0 100% 0.009
SingleGardenerObjectiveTest$TestGetCompletion 3 0 0 0 100% 0.006
SingleGardenerObjectiveTest$GetEligiblePositions 1 0 0 0 100% 0.002
SingleGardenerObjectiveTest$TestCopy 1 0 0 0 100% 0.001
PatternObjectiveTest$TestCopy 1 0 0 0 100% 0.074
PatternObjectiveTest$TestGetCompletion 1 0 0 1 0% 0
PatternObjectiveTest$TestHashCode 3 0 0 0 100% 0.006
SingleGardenerObjectiveTest$GetActionsToComplete 2 0 0 0 100% 0.005
SingleGardenerObjectiveTest$TestHashCode 0 0 0 0 0% 0.006
PandaObjectiveTest$TestVerify 2 0 0 0 100% 0.004
SingleGardenerObjectiveTest$TestEquals$TestNotEquals 5 0 0 0 100% 0.004
SingleGardenerObjectiveTest$TestEquals 1 0 0 0 100% 0.001
PandaObjectiveTest 0 0 0 0 0% 0.028
PatternObjectiveTest$TestEquals 5 0 0 0 100% 0.008
MultipleGardenerObjectiveTest$TestGetCompletion 3 0 0 0 100% 0.009
PatternObjectiveTest$TestVerify 2 0 0 0 100% 0.012
SingleGardenerObjectiveTest$GetMatchingPositions 1 0 0 0 100% 0.004
MultipleGardenerObjectiveTest 0 0 0 0 0% 0.042
SingleGardenerObjectiveTest 0 0 0 0 0% 0.081
MultipleGardenerObjectiveTest$TestHashCode 2 0 0 0 100% 0.009
MultipleGardenerObjectiveTest$TestVerify 2 0 0 0 100% 0.003
EmperorObjectiveTest 6 0 0 0 100% 0.005
SingleGardenerObjectiveTest$TestVerify 6 0 0 0 100% 0.02
MultipleGardenerObjectiveTest$TestCopy 1 0 0 0 100% 0.001
PatternObjectiveTest 0 0 0 0 0% 0.11
SingleGardenerObjectiveTest$TestHashCode$TestNotEquals 3 0 0 0 100% 0.003
SingleGardenerObjectiveTest$TestHashCode 1 0 0 0 100% 0.001
MultipleGardenerObjectiveTest$TestEquals 4 0 0 0 100% 0.005
SingleGardenerObjectiveTest$TestEquals 0 0 0 0 0% 0.007

com.takenoko.bot.unitary

Class Tests Errors Failures Skipped Success Rate Time
SmartObjectiveTest 0 0 0 0 0% 0.002
SmartChooseAndApplyWeatherTest$FillAction 1 0 0 0 100% 0.001
SmartDrawImprovementTest$FillAction 1 0 0 0 100% 0.002
SmartStoreIrrigationTest$FillAction 1 0 0 0 100% 0.071
SmartDrawImprovementTest 0 0 0 0 0% 0.003
SmartApplyWeatherTest 1 0 0 0 100% 0.001
SmartChooseAndApplyWeatherTest 0 0 0 0 0% 0.004
SmartDrawIrrigationTest$FillAction 1 0 0 0 100% 0.002
SmartObjectiveTest$FillAction 2 0 0 0 100% 0.001
SmartPatternTest 0 0 0 0 0% 0.02
SmartStoreIrrigationTest 0 0 0 0 0% 0.096
SmartPatternTest$fillAction 1 0 0 0 100% 0.017
SmartDrawIrrigationTest 0 0 0 0 0% 0.004

com.takenoko.layers.irrigation

Class Tests Errors Failures Skipped Success Rate Time
IrrigationLayerTest$TestPlaceIrrigation 3 0 0 0 100% 0.042
IrrigationLayerTest$TestUpdateAvailableIrrigationChannelPosition 13 0 0 0 100% 1.277
EdgePositionTest 0 0 0 0 0% 0.014
IrrigationLayerTest$TestIsIrrigated 1 0 0 0 100% 0.061
IrrigationChannelPositionTest$TestConstructor 2 0 0 0 100% 0.004
EdgePositionTest$TestConstructor 2 0 0 0 100% 0.011
EdgePositionTest 1 0 0 0 100% 0.002
IrrigationChannelPositionTest 0 0 0 0 0% 0.018
IrrigationLayerTest 0 0 0 0 0% 1.402
IrrigationLayerTest$TestConstructor 1 0 0 0 100% 0.011

com.takenoko.bot.utils.pathfinding.panda

Class Tests Errors Failures Skipped Success Rate Time
PandaPathfindingTest$GetPandaMoves 1 0 0 0 100% 0.003
PandaPathfindingTest 0 0 0 0 0% 0.005

com.takenoko.inventory

Class Tests Errors Failures Skipped Success Rate Time
InventoryTest$TestUseImprovement 1 0 0 0 100% 0.048
InventoryBambooStackTest$TestAddBamboo 1 0 0 0 100% 0.001
InventoryImprovementsTest$TestCopy 1 0 0 0 100% 0.001
InventoryImprovementsTest$TestHasImprovement 2 0 0 0 100% 0.002
InventoryTest$TestCopy 1 0 0 0 100% 0.002
InventoryBambooStackTest 0 0 0 0 0% 0.002
InventoryTest$TestHasImprovement 1 0 0 0 100% 0.044
InventoryTest 3 0 0 0 100% 0.001
InventoryImprovementsTest$TestStore 1 0 0 0 100% 0
InventoryImprovementsTest 0 0 0 0 0% 0.01
InventoryTest$TestHashCode 2 0 0 0 100% 0.001
InventoryTest 0 0 0 0 0% 0.109
InventoryTest$TestEquals 5 0 0 0 100% 0.005
InventoryTest$TestStoreImprovement 1 0 0 0 100% 0.001
InventoryImprovementsTest$TestUse 2 0 0 0 100% 0.003

Test Cases

[Summary] [Package List] [Test Cases]

BambooLayerTest$TestEquals

shouldReturnTrueIfTheBambooLayerEqualsItself 0.001
shouldReturnFalseIfTheBambooLayersAreNotEqual 0.003
shouldReturnFalseIfItIsNotABambooLayer 0.001
shouldReturnTrueIfTheBambooLayersAreEqual 0.001

TileLayerTest$TestGetAvailableTiles

getAvailableTiles_shouldReturnListWithAtLeastOneTile 0.001

BambooLayerTest$TestGrowBamboo

shouldAddABambooToTheBambooLayerIfTheKeyExists 0.004
shouldThrowAnExceptionIfThePositionIsNotOnTheBoard 0.002
shouldThrowAnExceptionIfThePositionIsTheSameAsThePond 0.002
shouldAddTwoBamboosToTheBambooLayerWhenFertilized 0.003
shouldNotGrowBambooPastTheMaximumNumberOfBamboos 0.003

GardenerTest$TestAfterMove

shouldGrowBambooIfTheGardenerCanGrowBamboo 0.033
shouldNotGrowBambooIfTheGardenerCannotGrowBamboo 0.02
shouldGrowBambooOnTheNeighbouringTilesIfTheyAreIrrigated 0.023

PandaObjectiveTest$TestGetCompletion

getCompletion_WhenObjectiveIsAchieved_ThenReturns1 0.004
getCompletion_WhenObjectiveIsPartiallyAchieved_ThenReturnsCorrectValue 0.001
getCompletion_WhenObjectiveIsNotAchieved_ThenReturns0 0.001

VectorTest$TestLength

length_shouldReturnTheLengthOfTheVector 0.001

DrawObjectiveActionTest$TestExecute

shouldUpdateActionsInSingleBotStatistics 0.001
execute_shouldReturnActionResultWithDrawObjectiveAction 0

TileLayerTest$TestUpdateAvailableTilePositions

updateAvailableTilePositions_WhenCalled_AddsTwoPositionToAvailableTilePositions 0.012
updateAvailableTilePositions_WhenCalled_AddsPositionToAvailableTilePositions 0.003
TilesNextToPondShouldBeAvailable 0.001

GameAssetsTest$TestCopy

copy_WhenGameAssetsIsCopied_ThenReturnsNewGameAssets 0.039

TileTest$TestHashCode

hashCode_WhenTilesAreEqual_ThenReturnsSameHashCode 0.001
hashCode_WhenTilesHaveDifferentColors_ThenReturnsDifferentHashCode 0.001
hashCode_WhenTilesAreNotEqual_ThenReturnsDifferentHashCode 0.001
hashCode_WhenTilesHaveDifferentImprovements_ThenReturnsDifferentHashCode 0.001

ImprovementDeckTest$TestHashCode

hashCode_WhenTwoDecksAreDifferent_ThenTheyHaveDifferentHashcode 0.001
hashCode_WhenTwoDecksAreInstantiated_ThenTheyHaveTheSameHashcode 0.001

TileLayerTest$TestGetAvailableImprovementPositions

getAvailableImprovementPositions_shouldNotReturnPondPosition 0.009
getAvailableImprovementPositions_shouldReturnEmptyListWhenTilesWithImprovements 0.002
getAvailableImprovementPositions_shouldReturnPositionsWhenTilesWithNoImprovementsAndBamboo 0.01
getAvailableImprovementPositions_shouldReturnEmptyListWhenNoTiles 0.001
getAvailableImprovementPositions_shouldNotReturnPositionsWhenTilesWithNoImprovementsButBamboo 0.009

GardenerTest$TestPositionMessage

shouldReturnAStringExplainingWhereTheGardenerIsOnTheBoard 0.021

SunnyTest$Revert

shouldRevertTheWeatherOnTheBoard 0.001

GardenerTest$TestCopy

shouldMakeACopyOfTheGardener 0

DiceTest$Roll

shouldReturnANumberBetween0And5WhenRandomIsBetween0And5 0.007

LayerBambooStackTest$TestRemoveBamboo

shouldThrowAnExceptionIfThereIsNoBamboo 0.002
shouldRemoveABamboo 0.001

CloudyTest$TestApply

shouldReturnDrawImprovementActionClass 0.012

VectorTest$TestConstructor

constructor_WhenGivenCorrectCoordinates_CreatesVector 0
constructor_WhenCoordinatesAreNotValid_ThrowsException 0.001

ApplyImprovementActionTest$Execute

shouldCallBoardApplyImprovement 0.001

PandaObjectiveTest$TestGetWhereToEatToComplete

getWhereToEatToComplete_WhenObjectiveIsAchieved_ThenReturnsEmptyList 0.004
getWhereToEatToComplete_WhenObjectiveIsNotAchievedAndThereIsOnlyOneBambooToEat_ThenReturnsCorrectList 0.002
getWhereToEatToComplete_WhenObjectiveIsNotAchieved_ThenReturnsCorrectList 0.002

GameAssetsTest$TestEquals

EqualsWithItselfIsTrue 0.003
equals_WhenGameAssets_S_AreEqual_ThenReturnsTrue 0.005
equals_WhenGameAssetsAreNotEqual_ThenReturnsFalse 0.002
equals_WhenGameAssetsIsNull_ThenReturnsFalse 0.001

SmartChooseAndApplyWeatherTest$FillAction

shouldApplySun 0.001

GameEngineTest$TestNewGame

newGame_shouldSetGameStateToReady 0.003
shouldRecreateBoardAndResetBotManagers 0.005
newGame_shouldDisplayALotOfMessages 0.004
shouldThrowExceptionIfGameStateIsNotInitializedOrFinished 0.003

ObjectiveDeckTest$TestGetStarterDeck

getStarterDeck 0.023

ObjectiveDeckTest

constructor 0.001

IrrigationLayerTest$TestPlaceIrrigation

placeIrrigationShouldUpdateIrrigationMap 0.015
placeIrrigationShouldThrowError 0.007
placeIrrigationShouldRemovePosition 0.015

SingleGardenerObjectiveTest$TestGetCompletion

getCompletion_shouldReturnTheCompletionPercentageWhenTheObjectiveIsCompleted 0.003
getCompletion_shouldReturnTheCompletionPercentageWhenTheObjectiveIsStarted 0.001
getCompletion_shouldReturnTheCompletionPercentageWhenTheObjectiveIsNotStarted 0

SingleGardenerObjectiveTest$GetEligiblePositions

getEligiblePositions_shouldReturnTheEligiblePositions 0.001

GameEngineTest$TestRunGame

runGame_shouldRunEveryStepsOfTheGame 5.226
runGame_shouldRunRunGameMultipleTimes 5.436
runGame_shouldDisplayALotOfMessages 0.042

DrawTileActionTest$TestExecute

testExecuteTileDeckNotEmptyAndInventoryHasImprovement 0.002
testExecuteTileDeckNotEmptyAndInventoryDoesNotHaveImprovement 0.001

StoreImprovementActionTest$Execute

whenDrawingAnImprovementTheNumberOfActionsConsumedIs0 0.002

TileTest$TestEquals

equals_WhenTilesAreNotOfTheSameClass_ThenReturnsFalse 0.003
equals_WhenTilesAreEqual_ThenReturnsTrue 0
equals_WhenTilesHaveNotTheSameImprovement_ThenReturnsFalse 0.004
equals_WhenTilesHaveNotTheSameType_ThenReturnsFalse 0
equals_WhenTileIsNull_ThenReturnsFalse 0.002

IrrigationLayerTest$TestUpdateAvailableIrrigationChannelPosition

irrigationLifecycle(int)[1] 0.52
irrigationLifecycle(int)[2] 0.01
irrigationLifecycle(int)[3] 0.077
irrigationLifecycle(int)[4] 0.066
irrigationLifecycle(int)[5] 0.057
irrigationLifecycle(int)[6] 0.06
irrigationLifecycle(int)[7] 0.051
irrigationLifecycle(int)[8] 0.06
irrigationLifecycle(int)[9] 0.068
irrigationLifecycle(int)[10] 0.063
irrigationLifecycle(int)[11] 0.068
irrigationLifecycle(int)[12] 0.065
irrigationLifecycle(int)[13] 0.056

TileDeckTest$Equals

whenComparingTwoTileDecksTheyAreNotEqualIfTheyHaveDifferentTiles 0.001
returnFalseWhenComparingATileDeckToObject 0.001
equals_returnTrueWhenComparingToSelf 0
whenComparingTwoTileDecksTheyAreEqualIfTheyHaveTheSameTiles 0.002

SingleBotStatisticsTest$TestUpdateActions

ifParameterIsNull_shouldThrowException 0.001
whenTheUpdatedActionIsntOfNewType_shouldntAddNewEntry 0.051
shouldIncrementNumberOfActionsForTheRightType 0.001
totalNbOfActions_shouldBeIncremented 0
whenTheUpdatedActionIsOfNewtype_shouldAddNewEntry 0.001

SingleBotStatisticsTest

TestConstructor 0.001

SingleGardenerObjectiveTest$TestCopy

shouldReturnACopyOfTheObjective 0

BotStateTest$TestGetObjectiveScore

update_should_addDrawObjectiveActionIfCanDrawObjective 0.003

BambooStackTest$TestIsEmpty

shouldReturnFalseWhenItIsNotEmpty 0.001
shouldReturnTrueWhenItIsEmpty 0.001

PatternObjectiveTest$TestCopy

copy_WhenPatternObjectiveIsCopied_ThenItIsEqualToTheOriginal 0.074

PatternObjectiveTest$TestGetCompletion

0
class com.takenoko.objective.PatternObjectiveTest$TestGetCompletion is @Disabled

BambooLayerTest$TestHashCode

shouldReturnTheSameHashCodeIfTheBambooLayersAreEqual 0
shouldReturnADifferentHashCodeIfTheBambooLayersAreNotEqual 0.004

HistoryStatisticsItemTest

shouldHaveSpecificEntriesWhenCreated 0

GameAssetsTest$TestHashCode

hashCode_WhenGameAssets_S_AreNotEqual_ThenReturnsDifferentHashCode 0.008
hashCode_WhenGameAssets_S_AreEqual_ThenReturnsSameHashCode 0.007

RainyTest$Apply

shouldReturnEmptyListWhenBambooIsNotGrowable 0.803
shouldReturnGrowBambooActionWhenBambooIsGrowable 0.05

ShapeTest$TestTranslate

translate_shouldReturnNewShapeWithTilesTranslated 0.002
translate_shouldReturnNewShapeWithSameSize 0.001
translate_shouldReturnNewShapeWithTranslatedOrigin 0.001

VectorTest$TestNormalize

normalize_shouldReturnTheNormalizedVector 0.003

TileTest$TestGetType

getType_WhenCalled_ThenReturnsFalse 0.002
getType_WhenTileIsPond_ThenReturnsTrue 0.002

HistoryTest$Equals

shouldReturnTrueWhenComparingTwoHistoriesWithSameData 0.002
equals_shouldReturnTrueWhenComparingSameObject 0.001
shouldReturnFalseWhenComparingToDifferentClass 0.001
shouldReturnFalseWhenComparingToNull 0
shouldReturnFalseWhenComparingTwoHistoriesWithDifferentData 0.002
shouldReturnTrueWhenComparingTwoEmptyHistories 0

DrawObjectiveActionTest$TestCanBePlayed

canDrawObjective_shouldReturnFalseIfCantDrawObjective 0.001
canDrawObjective_shouldReturnTrueIfCanDrawObjective 0.001
canDrawObjective_shouldReturnFalseIfObjectiveDeckIsEmpty 0.001

PatternTest$TestHashCode

hashCode_shouldReturnDifferentHashCodeWhenPatternsAreNotEqual 0.002
hashCode_shouldReturnSameHashCodeWhenPatternsAreEqual 0.002

PandaTest$TestPositionMessage

shouldReturnAStringExplainingWhereThePandaIsOnTheBoard 0.021

InventoryTest$TestUseImprovement

useImprovement_shouldCallMethodUseInInventoryImprovements 0.046

VectorTest$TestSub

sub_shouldSubtractTheTwoVectors 0.001

ShapeTest$TestHashCode

hashCode_shouldReturnDifferentHashCodeWhenShapeHasDifferentElementsColor 0.001
hashCode_shouldReturnSameHashCodeWhenShapeIsItself 0
hashCode_shouldReturnSameHashCodeWhenShapeHasSameElements 0.001
hashCode_shouldReturnDifferentHashCodeWhenShapeHasDifferentElementsPosition 0.001

BambooLayerTest$TestIsGrowableAt

whenTheTileIsNotAGrowableTileShouldReturnFalse 0.087
whenItIsAPondShouldReturnFalse 0.003
whenTheTileIsNotAPondAndIsAGrowableTileShouldReturnTrue 0.004

TileLayerTest$TestCopy

copy_shouldReturnCopyOfObject 0.003

TileDeckTest$HashCode

whenComparingTwoTileDecksTheyHaveTheSameHashCodeIfTheyHaveTheSameTiles 0.002
whenComparingTwoTileDecksTheyHaveDifferentHashCodesIfTheyHaveDifferentTiles 0.002

PlaceIrrigationActionTest$Execute

shouldReturnAnActionResultWith1Cost 0.001
shouldIncrementIrrigationCounterInSingleBotStatisticsAndUpdateActions 0.001
shouldCallBoardPlaceIrrigation 0.001

PatternObjectiveTest$TestHashCode

hashCode_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithADifferentPattern_ThenItHasADifferentHashCode 0.001
hashCode_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithTheSamePattern_ThenItHasTheSameHashCode 0
hashCode_WhenPatternObjectiveIsComparedToItself_ThenItHasTheSameHashCode 0.002

TileTest$TestSetImprovementAndGetImprovement

getImprovement_WhenCalled_ThenReturnsNull 0.002
setImprovement_WhenImprovementIsAlreadySet_ThenThrowsException 0.003
getImprovement_WhenImprovementIsSet_ThenReturnsImprovement 0.001

ApplyImprovementFromInventoryActionTest$TestExecute

shouldReturnAnActionResult 0.004

InventoryBambooStackTest$TestAddBamboo

shouldAddABamboo 0.001

HistoryTest$SetCurrentBotManagerUUID

shouldSetCurrentBotManagerUUID 0.001

TileDeckTest$Choose

whenChoosingATileThatIsNotPresentInTheLastDrawnTilesAnExceptionIsThrown 0.001

PatternTest$Constructor

shouldThrowExceptionWhenPatternIsEmpty 0.002

InventoryImprovementsTest$TestCopy

copy_shouldReturnCopyOfObject 0

SingleBotStatisticsTest$TestIncrementation

testUpdateScore 0
testWinIncrementation 0.001
testIrrigationIncrementation 0
testLossIncrementation 0

PandaPathfindingTest$GetPandaMoves

getPandaMoves 0.003

HistoryAnalysisTest$AnalyzeRushPanda

shouldReturnFalseWhenBotHasNotRushedPanda 0.026
shouldReturnTrueWhenBotHasRushedPanda 0.002

SingleGardenerObjectiveTest$GetActionsToComplete

getActionsToComplete_ifPandaAndNoGardenerMovementsAreAvailable_returnsNull 0.001
getActionsToComplete_ifNoPandaAndNoGardenerMovementsAreAvailable_returnsNull 0.001

SingleBotStatisticsTest$TestUpdateWeathersRolled

whenTheRolledWeatherIsntOfNewType_shouldntAddNewEntry 0.001
ifParameterIsNull_shouldThrowException 0.001
whenTheRolledWeatherIsOfNewtype_shouldAddNewEntry 0.001
shouldIncrementNumberOfRolledWeathersForTheRightType 0

InventoryImprovementsTest$TestHasImprovement

hasImprovement_shouldReturnTrueIfImprovementIsInList 0
hasImprovement_shouldReturnFalseIfImprovementIsNotInList 0

BambooLayerTest$TestGetBambooAt

shouldThrowAnExceptionIfThePositionIsNotOnTheBoard 0.009
shouldReturnTheBambooStackAtThePosition 0.003
shouldReturn0OnAnEmptyTile 0.002

DiceTest$Peek

shouldReturnTheLastRollWhenTheDiceIsRolled 0.004

BoardTest$TestApplyImprovement

applyImprovement_WhenImprovementIsApplied_CallsApplyImprovementOnTileLayer 0.008

SingleBotStatisticsTest$TestUpdateObjectivesRedeemed

whenTheUpdatedObjectiveIsNew_shouldAddNewEntry 0.003
whenTheUpdatedObjectiveIsntNew_shouldntAddNewEntry 0.002
ifParameterIsNull_shouldThrowException 0
shouldIncrementNumberOfObjectivesForTheRightType 0

ShapeTest$TestEquals

equals_shouldReturnFalseWhenShapeHasDifferentElementsColor 0.001
equals_shouldReturnFalseWhenShapeHasDifferentElementsPosition 0
equals_shouldReturnFalseWhenShapeIsOfAnotherClass 0
equals_shouldReturnTrueWhenShapeIsItself 0
equals_shouldReturnTrueWhenShapeHasSameElements 0
equals_shouldReturnFalseWhenShapeIsNull 0

PlaceTileWithImprovementActionTest$TestExecute

shouldAddImprovementToTile 0.004

InventoryTest$TestCopy

copy_shouldReturnCopyOfObject 0

BotManagerTest$TestGetNumberOfActions

getNumberOfActions_ThenReturns2 0.001

ShapeTest$TestParameterizedConstructor

parameterizedConstructor_shouldThrowExceptionWhenPatternIsEmpty 0.001

GameEngineTest$TestStartGame$TestStartGame_WhenStartedCorrectly

startGame_shouldSetGameStateToPlaying 0.002

GameEngineTest$TestStartGame

startGame_shouldChangeGameStateToPlaying 0.003
startGame_shouldDisplayALotOfMessages 0.004

WeatherDiceTest$RollWeather

shouldReturnAWeatherWhenRandomIsBetween0And5 0.216

InventoryTest$TestHasImprovement

hasImprovement_shouldCallMethodHasImprovementInInventoryImprovements 0.044

InventoryTest

shouldClearBothBambooStackAndImprovements 0.001
shouldReturnTheImprovements 0
shouldReturnTheBambooStack 0

PatternTest$TestMatch

match_shouldReturnTrueWhenPatternMatchesSingleTilePattern 0.015
match_shouldReturnFalseWhenPatternDoesNotMatchPattern 0.008
match_shouldReturnTrueWhenPatternMatchesNTilePattern 0.009

BoardStatisticsTest$TestUpdateObjectivesRedeemed

ifParameterIsNull_shouldThrowException 0.001
shouldIncrementNumberOfImprovementForTheRightType 0
whenTheUpdatedImprovementIsntNew_shouldntAddNewEntry 0.001
whenTheUpdatedImprovementIsNew_shouldAddNewEntry 0.001

HistoryTest$Copy

shouldReturnACopyOfTheHistory 0.001

IrrigationLayerTest$TestIsIrrigated

isIrrigated_shouldReturnTrueForTileNextToPond 0.059

SmartDrawImprovementTest$FillAction

shouldDrawAnImprovementWhenThereIsLessThanImprovementInTheInventory 0.001

InventoryImprovementsTest$TestStore

store_shouldStoreTheImprovement 0

LayerBambooStackTest$TestEquals

shouldReturnTrueIfTheTwoObjectsEquals 0.001
shouldReturnTrueIfTheBambooStacksAreEqual 0.001
shouldReturnFalseIfTheTwoObjectsAreNotTheSame 0.001
shouldReturnFalseIfTheBambooStacksAreNotEqual 0

GameProgressStatisticsTest$TestHashCode

hashCode_WhenGameProgressStatisticsAreNotEqual_ThenReturnsDifferentHashCode 0.001
hashCode_WhenGameProgressStatisticsAreEqual_ThenReturnsSameHashCode 0.001

GameProgressStatisticsTest

whenCreated_shouldHaveSpecificActionMetrics 0.029

HistoryAnalysisTest$GetGameProgress

shouldReturnLateGame 0.002
shouldReturnMidGame 0.002
shouldReturnEarlyGame 0.002

GrowBambooActionTest$Execute

shouldGrowBambooWhenBambooIsGrowable 0.002
shouldThrowIllegalStateExceptionWhenBambooIsNotGrowable 0.001

PandaTest$TestGetPosition

shouldReturnThePositionOfThePanda 0.003

TileDeckTest$Constructor

whenCreatingATileDeckTheDeckIsNotEmptyAndContains27Tiles 0.003

PandaTest$TestHashCode

shouldReturnTheSameHashcodeIfTheTwoObjectsAreEqual 0.02
shouldReturnADifferentHashcodeIfTheTwoObjectsAreNotTheSame 0.127

TileLayerTest$TestGetTiles

getTiles_shouldReturnOnlyOneItem 0.003

ChooseIfApplyWeatherActionTest$Execute

shouldApplyTheWeatherIfApplyWeatherIsTrue 0.001
shouldReturnAnActionResult 0.001

VectorTest$TestMultiply

multiply_shouldMultiplyTheVectorByTheGivenFactor 0.001
multiply_shouldReturnTheSameVectorIfTheFactorIs1 0.002
multiply_shouldReturnTheZeroVectorIfTheFactorIs0 0.002

GeneralTacticBotTest$TestAnalyzeBoardToFindPlaceToCompleteShapeOfPatternObjective

0
class com.takenoko.bot.GeneralTacticBotTest$TestAnalyzeBoardToFindPlaceToCompleteShapeOfPatternObjective is @Disabled

IrrigationDeckTest

equals 0.001
draw 0
hasIrrigation 0.001
hashCodeTest 0

PlaceTileActionTest$TestExecute

shouldCallBoardPlaceTile 0.001
shouldUpdateTilesPlaceCounterAndActionsInSingleBotStatistics 0.002
shouldDisplayMessage 0.002

PatternTest$TestGetSubsetMatchPattern

getSubsetMatchPattern_shouldReturnSubsetOfPatternThatMatchesBoard 0.025

PatternTest

testPatternMatching 0.281

ImprovementDeckTest$TestEquals

equals_WhenCalledOnSelf_ThenReturnsTrue 0.001
equals_WhenTwoDecksAreDifferent_ThenTheyAreNotEquals 0
equals_WhenCalledOnDifferentObject_ThenReturnsFalse 0
equals_WhenTwoDecksAreInstantiated_ThenTheyAreEquals 0.001

GameEngineTest$TestStartGame$TestStartGame_WhenStartedIncorrectly

startGame_shouldThrowExceptionWhenGameStateIsPlaying 0.004
startGame_shouldThrowExceptionWhenGameStateIsFinished 0.002
startGame_shouldThrowExceptionWhenGameStateIsInitialized 0.002

TileLayerTest$TestApplyImprovement

applyImprovement_shouldApplyImprovementToTile 0.098

PandaObjectiveTest$TestVerify

verify_WhenObjectiveIsNotAchieved_ThenReturnsNOT_ACHIEVED 0.001
verify_WhenObjectiveIsAchieved_ThenReturnsACHIEVED 0.001

BoardTest$TestHashCode

hashCode_WhenBoardsAreNotEqual_ThenReturnsDifferentHashCode 0.011
hashCode_WhenBoardsAreEqual_ThenReturnsSameHashCode 0.002

ImprovementDeckTest$TestDraw

draw_WhenImprovementIsDrawn_ThenItIsRemovedFromTheDeck 0
draw_WhenImprovementIsExhausted_ThenAnExceptionIsThrown 0.001

DrawImprovementActionTest$TestApply

shouldReturnAnActionResultContainingApplyImprovementActionAndStoreImprovementActionIfAnImprovementIsDrawn 0.001
shouldReturnAnActionResult 0.001
shouldReturnAnActionResultContainingChooseAndApplyWeatherActionIfNoImprovementCanBeDrawn 0.001

TileLayerTest$TestGetTilesWithoutPond

getTilesWithoutPond_shouldReturnOnlyOneItem 0.001

GameEngineTest$TestGetWinner

getWinner_shouldReturnTheWinnerWithTheHighestScore 0.808
getWinner_shouldReturnTheWinner 0.01
getWinner_shouldReturnTheWinnerWithTheHighestPandaScore 0.009

SingleGardenerObjectiveTest$TestEquals$TestNotEquals

shouldReturnFalseWhenTheTwoObjectsAreNotEqualBecauseThecolorIsNotTheSame 0
shouldReturnFalseWhenTheTwoObjectsAreNotEqualBecauseTheOtherObjectIsNotASingleGardenerObjective 0.001
shouldReturnFalseWhenTheTwoObjectsAreNotEqualBecauseTheSizeIsNotTheSame 0
shouldReturnFalseWhenTheTwoObjectsAreNotEqualBecauseTheOtherObjectIsNull 0
shouldReturnFalseWhenTheTwoObjectsAreNotEqualBecauseTheImprovementIsNotTheSame 0

SingleGardenerObjectiveTest$TestEquals

shouldReturnTrueWhenTheTwoObjectsAreTheEqual 0.001

PandaTest$TestMove

shouldMoveThePandaWithAVector 0.009
shouldThrowAnExceptionIfThePandaIsNotMovingWithAValidVector 0.018

BambooStackTest$TestCopy

shouldReturnACopyOfTheBambooStack 0.001

SmartStoreIrrigationTest$FillAction

shouldAddStoreIrrigationInInventoryActionToActions 0.07

HistoryTest$AddBotManager

shouldAddBotManager 0.001

DiceTest$HashCode

shouldReturnTheSameHashCodeWhenTheNumberOfSidesIsTheSame 0.002
shouldReturnADifferentHashCodeWhenTheNumberOfSidesIsDifferent 0.001

BambooStackTest$TestAddBamboo

shouldAddABamboo 0.001

HistoryAnalysisTest$GetCurrentBotScores

shouldReturnMapOfCurrentScores 0.001

BoardTest$TestNextRound

nextRound_ByDefault_RoundNumberIs0 0.001
nextRound_WhenNextRoundIsCalled_RoundNumberIsIncremented 0.001

BoardTest

shouldMoveGardenerToAGivenPosition 0.008
shouldGrowBambooAtAGivenPosition 0.003
shouldReturnABambooAtAGivenPosition 0.002
shouldReturnPandaPosition 0.001
shouldReturnATileAtAGivenPosition 0.002
shouldReturnAListOfAvailableTiles 0.001
shouldReturnAListOfTiles 0.001
shouldReturnAListOfTilesWithoutPond 0.006
shouldMovePandaToAGivenPosition 0.001
shouldEatBambooAtAGivenPosition 0.001
shouldReturnTrueIfTileIsPresent 0.001
shouldReturnPandaPossibleMoves 0.005
shouldReturnGardenerPosition 0.003
shouldReturnGardenerPossibleMoves 0.001
shouldPlaceATileAtAGivenPosition 0.001

HistoryTest$GetLatestHistoryItems

shouldReturnLatestHistoryItems 0.012

PandaTest$TestAfterMove

shouldNotEatABambooIfThereIsNone 0.045
shouldEatABambooIfThereIsOne 0.031

BotCSVExporterTest$ReadData

shouldReadDataFromCSV 0.001

PatternTest$TestEquals

equals_shouldReturnTrueWhenPatternsAreEqual 0.002
equals_shouldReturnTrueWhenCalledOnSelf 0.001
equals_shouldReturnFalseWhenPatternsAreNotEqual 0.001
equals_shouldReturnFalseWhenCalledOnAnotherClass 0.001

LayerBambooStackTest$TestGetBamboo

shouldReturnTheNumberOfBamboo 0

SingleBotStatisticsTest$TestUpdateEatenBambooCounter

whenTheEatenBambooIsntOfNewColor_shouldntAddNewEntry 0.001
shouldIncrementNumberOfBamboosEatenForTheRightColor 0
ifParameterIsNull_shouldThrowException 0.001
whenTheEatenBambooIsOfNewColor_shouldAddNewEntry 0.001

PatternObjectiveTest$TestEquals

equals_WhenPatternObjectiveIsComparedToItself_ThenItIsEqual 0.001
equals_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithTheSamePattern_ThenItIsEqual 0.001
equals_WhenPatternObjectiveIsComparedToAnObjectOfAnotherClass_ThenItIsNotEqual 0.001
equals_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithADifferentPattern_ThenItIsNotEqual 0.001
equals_WhenPatternObjectiveIsComparedToNull_ThenItIsNotEqual 0

MultipleGardenerObjectiveTest$TestGetCompletion

shouldReturnTheCompletionPercentageWhenTheObjectiveIsNotStarted 0.002
shouldReturnTheCompletionPercentageWhenTheObjectiveIsStarted 0.004
shouldReturnTheCompletionPercentageWhenTheObjectiveIsCompleted 0.002

VectorTest$TestRotate60

rotate60_shouldRotateTheVectorBy60Degrees 0.001

TileLayerTest$TestEquals

equals_shouldReturnTrueWhenEqual 0.002
equals_shouldReturnFalseWhenOtherIsNull 0.001
equals_shouldReturnFalseWhenOtherIsNotTileLayer 0.001
equals_shouldReturnTrueWhenSameObject 0.001
equals_shouldReturnFalseWhenNotEqual 0.002

VectorTest$TestDistance

distance_shouldReturnTheDistanceBetweenTheTwoVectors 0.001

PatternObjectiveTest$TestVerify

verify_WhenBoardHasTwoTilesNextToEachOther_ThenObjectiveStateIsNOT_ACHIEVED 0.009
verify_WhenBoardHasTwoTilesNextToEachOther_ThenObjectiveStateIsACHIEVED 0.001

BotStateTest$TestHashCode

hashCode_shouldReturnDifferentHashCodeWhenNotEqual 0
hashCode_shouldReturnSameHashCodeWhenEqual 0.001

SmartApplyWeatherTest

shouldFillAndApplyWeather 0.001

LayerBambooStackTest$TestIsGrowable

shouldReturnFalseIfTheBambooStackIsFull 0
shouldReturnTrueIfTheBambooStackIsNotFull 0

SingleGardenerObjectiveTest$GetMatchingPositions

getMatchingPositions_shouldReturnTheMatchingPositions 0.003

PatternFactoryTest$TestCreateLine

createShape_shouldReturnLineContainingAdjacentTile 0.001
createShape_shouldReturnLineContainingOrigin 0.001
createShape_shouldReturnLineContainingSecondAdjacentTile 0.001
createShape_shouldReturnLineOfLength3 0.001

ColletBotTest$IntegrationTests

whenTheBotRollsTheWeatherInTheEarlyGamePhaseHeTakesTheCloudyMeteo 0.005
theFirstTwoMovementsOfTheBotShouldThereforeBeToTakeAnObjectiveCardAndTakeAnIrrigationCanal 0.006
whenTheBotChoosesAnObjectiveItTakesThePandaOnesIfThereAreSomeAvailables 0.003
heCollectsAsManyBamboosAsPossibleEvenIfHeHasNoCardsWithTheCorrespondingColor 0.047

CloudyTest$TestRevert

shouldCallBoardResetWeather 0.004

ShapeTest$TestGetRotatedShape

getRotatedShape_shouldReturnNewShapeWithSameOrigin 0.001
getRotatedShape_shouldReturnSameShapeWhenRotationIsMultipleOf360 0
getRotatedShape_shouldReturnNewShapeWithTilesRotated60Degrees 0
getRotatedShape_shouldReturnNewShapeWithSameSize 0

BambooLayerTest$TestRemoveBamboo

shouldThrowAnExceptionIfThePositionIsNotOnTheBoard 0.005
shouldRemoveTheBambooFromTheBambooLayer 0.003
shouldThrowAnExceptionIfTheBambooStackIsEmpty 0.002

BoardTest$TestEquals

equals_WhenBoardsAreEqual_ThenReturnsTrue 0.001
EqualsWithItselfIsTrue 0.001
equals_WhenBoardIsNull_ThenReturnsFalse 0.002
equals_WhenBoardsAreNotEqual_ThenReturnsFalse 0.004

ShapeTest$TestRotate60

rotate60_shouldReturnNewShapeWithSameOrigin 0.001
rotate60_shouldReturnNewShapeWithSameSize 0
rotate60_shouldReturnNewShapeWithTilesRotated60Degrees 0.001

ImprovementDeckTest$TestHasImprovement

hasImprovement_WhenImprovementIsDrawn_ThenItIsRemovedFromTheDeck 0
hasImprovement_WhenDeckRunsOutOfImprovement_ThenReturnsFalse 0

BotStateTest$TestGetPandaObjectiveScore

getPandaObjectiveScore_shouldReturnZeroIfNoPandaObjective 0.001
getPandaObjectiveScore_shouldReturnZeroIfPandaObjectiveNotAchieved 0.048
getPandaObjectiveScore_shouldReturnScoreIfPandaObjectiveIsRedeemed 0.001

BotStateTest

test_getScore 0.065

MoveGardenerActionTest$TestCanBePlayed

shouldReturnFalseIfGardenerCantMove 0.001
shouldReturnTrueIfGardenerCanMove 0.001

BotStateTest$TestEquals

equals_shouldReturnTrueWhenEqual 0.002
equals_shouldReturnFalseWhenOtherIsNull 0.001
equals_shouldReturnFalseWhenOtherIsNotBotState 0.001
equals_shouldReturnTrueWhenSameObject 0.001
equals_shouldReturnFalseWhenNotEqual 0.009

PandaTest$TestGetPossibleMoves

shouldReturnAllPositionIfWeatherIsStorm 0.048
shouldReturnAListOfPossibleMoves 0.015

GardenerPathfindingTest$GetPosition

shouldReturnNull 0

ShapeTest$TestGetMissingShape

getMissingShape_shouldReturnShapeCorrespondingToMissingPartOfShape 0.002
getMissingShape_shouldReturnAComplexShapeCorrespondingToMissingPartOfShape 0.001

SingleBotStatisticsTest$TestUpdateWeathersApplied

ifParameterIsNull_shouldThrowException 0.001
whenTheAppliedWeatherIsntOfNewType_shouldntAddNewEntry 0.046
shouldIncrementNumberOfAppliedWeathersForTheRightType 0.001
whenTheAppliedWeatherIsOfNewtype_shouldAddNewEntry 0.002

GameProgressStatisticsTest$TestEquals

EqualsWithItselfIsTrue 0
equals_WhenGameProgressStatisticsIsNull_ThenReturnsFalse 0
equals_WhenGameProgressStatisticsAreEqual_ThenReturnsTrue 0
equals_WhenGameProgressStatisticsAreNotEqual_ThenReturnsFalse 0

LayerBambooStackTest$TestAddBamboo

shouldAddABamboo 0.001
shouldThrowAnExceptionIfTheBamboostackIsFull 0.001

BambooLayerTest$TestIsEatableAt

whenItIsAPondShouldReturnFalse 0.002
whenTheTileHasAnImprovementEnclosureShouldReturnFalse 0.003
whenTheTileIsNeitherAPondNorHasAnImprovementEnclosureShouldReturnTrue 0.004

LayerBambooStackTest$TestCopy

shouldReturnACopyOfTheBambooStack 0.001

BambooLayerTest$TestCopy

shouldReturnACopyOfTheBambooLayer 0.002

BambooStackTest$TestHashCode

shouldReturnTheSameHashcodeIfTheTwoObjectsAreEqual 0.001
shouldReturnADifferentHashcodeIfTheTwoObjectsAreNotEqual 0.001

PandaTest$TestEquals

equals_shouldReturnTrueIfTheTwoObjectsAreTheSame 0.028
shouldReturnFalseIfTheTwoObjectsAreOfDifferentClasses 0.01
shouldReturnFalseIfTheTwoObjectsAreNotTheSame 0.011
shouldReturnTrueIfTheTwoObjectsAreEqual 0.006

ConsoleUserInterfaceTest$DisplayMessage

displayMessage 0.036
displayScoreBoardMessage 0.001
displayEndMessage 0.001
displayStatsMessage 0.001
displayErrorMessage 0.001

TileLayerTest$TestPlaceTile

placeTile_WhenCalled_CallsChooseTileInTileDeck 0.002
placeTile_WhenTileAlreadyAtPosition_ThrowsException 0.001
placeTile_WhenPositionNotAvailable_ThrowsException 0.002
placeTile_WhenCalled_AddsTileToBoard 0.002
placeTile_WhenCalled_RemovesPositionVectorFromAvailablePositions 0.002
placeTile_WhenCalled_GrowsBambooOnTile 0.001

GameEngineTest$TestEndGame$TestEndGame_WhenEndedIncorrectly

endGame_shouldThrowException_WhenGameStateIsNotPLAYING(GameState)[1] 0.008
endGame_shouldThrowException_WhenGameStateIsNotPLAYING(GameState)[2] 0.002

GameEngineTest$TestEndGame

endGame_shouldDisplayALotOfMessages 0.008
endGame_shouldSetGameStateToFinished 0.002
endGame_shouldIncrementsVictoriesAndLossesAndUpdateScores 0.01

IrrigationChannelPositionTest$TestConstructor

ifTheIrrigationChannelPositionsAreNotAdjacentThenThrowAnException 0.002
ifTheIrrigationChannelPositionsAreTheSameThenThrowAnException 0.001

PlaceIrrigationFromInventoryActionTest$TestExecute

shouldReturnAnActionResult 0.002

FullRandomBotTest$TestChooseAction

shouldReturnAnActionOfTypeMoveGardener 0.004
shouldReturnAnActionOfTypeGetAndStoreImprovementAction 0.002
shouldReturnApplyWeatherActionIfThatActionIsAvailable 0.002
shouldReturnAnAction 0.002
shouldReturnAnActionOfTypeDrawTileAction 0.001
shouldReturnAnActionOfTypeMovePanda 0.002
shouldReturnAnActionOfTypePlaceTile 0.003

SmartDrawIrrigationTest$FillAction

shouldDrawAnIrrigationWhenThereIsLessThan3IrrigationInTheInventory 0.001

LayerBambooStackTest$TestIsEatable

shouldReturnTrueIfTheBambooStackIsNotEmpty 0.002
shouldReturnFalseIfTheBambooStackIsEmpty 0.001

BambooStackTest$TestRemoveBamboo

shouldThrowAnExceptionIfThereIsNoBamboo 0.001
shouldRemoveABamboo 0.001

SmartObjectiveTest$FillAction

shouldNotRedeemObjective 0
shouldRedeemPandaObjective 0

ShapeTest$TestToString

toString_shouldReturnStringRepresentationOfShape 0.001

MultipleGardenerObjectiveTest$TestHashCode

shouldReturnTheSameHashCodeWhenTheObjectIsEqual 0.005
shouldReturnADifferentHashCodeWhenTheObjectIsNotEqual 0

BotStateTest$TestGetAvailableActions

getAvailableActions_shouldReturnListOfAvailableActions 0.001
getAvailableActions_shouldReturnOnlyForcedActions 0

MovePandaActionTest$TestExecute

shouldUpdateEatenBambooCounterAndActionsInSingleBotStatistics 0.002
shouldMoveThePandaCollectBambooAndDisplayMessages 0.002

GameEngineTest$Playgame

shouldCallPlaybot 0.055
shouldEndGameWhen9ObjectivesAreRedeemed(int, int)[1] 0.006
shouldEndGameWhen9ObjectivesAreRedeemed(int, int)[2] 0.005
shouldEndGameWhen9ObjectivesAreRedeemed(int, int)[3] 0.005

BambooStackTest$TestEquals

shouldReturnTrueIfTheTwoObjectsAreTheSame 0
shouldReturnFalseIfTheTwoObjectsAreNotEqual 0
shouldReturnFalseIfTheTwoObjectsAreOfDifferentClasses 0
shouldReturnTrueIfTheTwoObjectsAreEqual 0

InventoryTest$TestHashCode

hashCode_shouldReturnDifferentHashCodeWhenNotEqual 0
hashCode_shouldReturnSameHashCodeWhenEqual 0

BoardTest$TestCopy

copy_WhenBoardIsCopied_ThenReturnsNewBoard 0.004

SingleBotStatisticsTest$TestUpdateTilesPlacedCounter

whenThePlacedTileIsNew_shouldAddNewEntry 0.032
ifParameterIsNull_shouldThrowException 0.001
whenThePlacedTileIsntOfNewColor_shouldntAddNewEntry 0.002
shouldIncrementNumberOfTilesPlacedForTheRightColor 0.001

TileTest$TestCopy

copy_WhenTileIsCopied_ThenReturnsNewTile 0.001
copy_WhenTileIsCopied_ThenReturnsTileWithSameImprovement 0.003
copy_WhenTileIsCopied_ThenReturnsTileWithSameType 0.001
copy_WhenTileIsCopied_ThenReturnsTileWithSameColor 0.001

BotCSVExporterTest$WriteData

secondLineShouldBeData 0.001
firstLineShouldBeHeader 0

EdgePositionTest$TestConstructor

ifTheIrrigationChannelPositionsAreNotAdjacentThenThrowAnException 0.001
ifTheIrrigationChannelPositionsAreTheSameThenThrowAnException 0.001

EdgePositionTest

methodGetNeighbours 0.002

HistoryTest$HashCode

shouldReturnDifferentHashCodeWhenComparingTwoHistoriesWithDifferentData 0.055
shouldReturnSameHashCodeWhenComparingTwoHistoriesWithSameData 0.002
hashcode_shouldReturnSameHashCodeWhenComparingSameObject 0.001
hashcode_shouldReturnSameHashCodeWhenComparingTwoEmptyHistories 0.001

SunnyTest$Apply

shouldApplyTheWeatherOnTheBotManager 0.002
shouldApplyTheWeatherOnTheBoard 0.002

LayerBambooStackTest$TestHashCode

shouldReturnTheSameHashCodeIfTheBambooStacksAreEqual 0.001
shouldReturnADifferentHashCodeIfTheBambooStacksAreNotEqual 0.003

DiceTest$Equals

shouldReturnFalseWhenTheNumberOfSidesIsDifferent 0
shouldReturnFalseWhenTheObjectIsNotADice 0
shouldReturnTrueWhenTheNumberOfSidesIsTheSame 0.001
shouldReturnTrueWhenTheObjectIsTheSameTestEqual 0.001
shouldReturnFalseWhenTheObjectIsNull 0.001

TileTest$TestGetColor

getColor_WhenTileIsCreated_ThenReturnsColor 0.002

WindyTest

Revert 0.005
Apply 0.004

IrrigationPathFindingTest$GetIrrigationToPlace

integrationTestForIrrigationPathFinding 0.012
integrationTestForIrrigationPathFinding2 0.018
impossibleBoardTest 3.575

TileDeckTest$DrawAndPeek

whenDrawingTilesTheLastDrawnTilesAreCleared 0.002
whenDrawinfTilesThreeTilesAreDrawn 0.001

MultipleGardenerObjectiveTest$TestVerify

verify_shouldReturnFalseWhenTheObjectiveIsNotCompleted 0.001
verify_shouldReturnTrueWhenTheObjectiveIsCompleted 0.001

BotStateTest$TestUpdateAvailableActions

updateAvailableActions_shouldNotRemoveAlreadyExecutedActionsIfWindy 0.002
updateAvailableActions_shouldRemoveAlreadyExecutedActions 0.001
updateAvailableActions_shouldKeepPersistantActions 0.001
updateAvailableActions_shouldRemoveForcedActions 0.001
updateAvailableActions_shouldRemoveCurrentAction 0

MoveGardenerActionTest$TestExecute

shouldUpdatePlantedBambooCounterAndActionsInSingleBotStatistics 0.003
shouldMoveTheGardenerPlantBamboo 0.002

HistoryAnalysisTest$GetMaxCurrentBotScore

shouldReturnMaxScore 0.002

HistoryAnalysisTest$IntegrationTest

test1 1.86

BotStateTest$TestCopy

copy_shouldReturnCopyOfObject 0

SmartPatternTest$fillAction

shouldTryToCompletePatternObjective 0.016

BoardStatisticsTest$TestAnalyzeBoard

shouldThrowExceptionIfArgumentIsNull 0.001
GeneralTests 0.308

GardenerTest$TestConstructor

shouldInstantiateTheGardenerAtTheGivenPosition 0.001
shouldInstantiateTheGardenerAtTheOrigin 0.001

RedeemObjectiveActionTest$TestExecute

shouldUpdateActionsInSingleBotStatistics 0.002
update_should_addRedeemObjectiveActionIfCanRedeemObjective 0.002
execute_shouldReturnActionResultWithRedeemObjectiveAction 0.001

TileLayerTest$TestHashCode

hashCode_shouldReturnDifferentHashCodeWhenNotEqual 0.002
hashCode_shouldReturnSameHashCodeWhenEqual 0.001

BotManagerTest$TestDisplayMessage

shouldDisplayTheMessage 0.004

BotManagerTest

getInventory 0.369
getName 0.001
reset 0.005
getEatenBambooCounter 0.002
getScore 0.002

EmperorObjectiveTest

isAlwaysCompleted 0
verify 0
copy 0
reset 0
givesTwoPoints 0
isAlwaysAchieved 0.001

SingleGardenerObjectiveTest$TestVerify

verify_shouldReturnTrue(int, TileColor, ImprovementType, String)[1] 0.002
verify_shouldReturnTrue(int, TileColor, ImprovementType, String)[2] 0.002
verify_shouldReturnTrue(int, TileColor, ImprovementType, String)[3] 0.001
verify_shouldReturnFalse(int, TileColor, ImprovementType, String)[1] 0.002
verify_shouldReturnFalse(int, TileColor, ImprovementType, String)[2] 0.003
verify_shouldReturnFalse(int, TileColor, ImprovementType, String)[3] 0.002

ChooseAndApplyWeatherActionTest$TestApply

shouldReturnAnActionResult 0.001

MultipleGardenerObjectiveTest$TestCopy

shouldReturnACopyOfTheObjective 0

VectorTest$TestEquals

equals_WhenVectorsAreEqual_ReturnsTrue 0.003
equals_WhenCalledOnSelf_ReturnsTrue 0.001
equals_WhenVectorsAreNotEqual_ReturnsFalse 0.001
equals_WhenCalledOnAnotherClass_ReturnsFalse 0

InventoryTest$TestEquals

equals_shouldReturnTrueWhenEqual 0.002
equals_shouldReturnFalseWhenOtherIsNotInventory 0
equals_shouldReturnFalseWhenOtherIsNull 0.001
equals_shouldReturnTrueWhenSameObject 0
equals_shouldReturnFalseWhenNotEqual 0.001

VectorTest$TestAdd

add_shouldAddTheTwoVectors 0.001

PandaTest$TestCopy

shouldReturnACopyOfThePanda 2.036

SingleBotStatisticsTest$TestUpdatePlantedBamboo

whenThePlantedBambooIsntOfNewColor_shouldntAddNewEntry 0.002
ifParameterIsNull_shouldThrowException 0.001
whenThePlantedBambooIsOfNewColor_shouldAddNewEntry 0.001
shouldIncrementNumberOfBamboosPlantedForTheRightColor 0.002

QuestionMarkTest$Apply

shouldApplyTheWeatherOnTheBotManager 0.001
shouldApplyTheWeatherOnTheBoard 0.001

SingleGardenerObjectiveTest$TestHashCode$TestNotEquals

shouldReturnADifferentHashcodeWhenTheTwoObjectsAreNotEqual 0.001
shouldReturnADifferentHashcodeWhenTheTwoObjectsAreNotEqual2 0
shouldReturnADifferentHashcodeWhenTheTwoObjectsAreNotEqual3 0

SingleGardenerObjectiveTest$TestHashCode

shouldReturnTheSameHashcodeWhenTheTwoObjectsAreEqual 0.001

InventoryTest$TestStoreImprovement

storeImprovement_shouldCallMethodStoreInInventoryImprovements 0

InventoryImprovementsTest$TestUse

use_shouldRemoveTheImprovementFromListIfIn 0.001
use_shouldThrowExceptionIfNotInList 0.002

TileTest$TestToString

toString_WhenTileIsCreated_ThenReturnsString 0.002

ScoreboardTest$TestAddBotManager

usingConstructorWithList 0.001
usingConstructorWithSingleBotManager 0.001

ScoreboardTest

incrementNumberOfVictory 0.001
updateScoreTest 0
toString_ThenReturnsCorrectString 0.001
getNumberOfVictory 0

ImprovementDeckTest$TestConstructor

constructor_WhenInstantiated_ThenDeckHas3TimesTheNumberOfImprovementTypes 0

MultipleGardenerObjectiveTest$TestEquals

shouldReturnFalseWhenTheObjectIsNotAnInstanceOfMultipleGardenerObjective 0
shouldReturnFalseWhenTheObjectIsNotEqual 0
shouldReturnTrueWhenTheObjectIsEqual 0
shouldReturnFalseWhenTheObjectIsNull 0

VectorTest$TestHashcode

hashcode_shouldReturnADifferentHashcodeForDifferentVectors 0.002
hashcode_shouldReturnTheSameHashcodeForEqualVectors 0.001

TileDeckTest$Bug1Fix

whenChoosingATileTheTileIsRemovedFromTheDeckAndTheTilesThatAreNotChosenAreReturnedAreAddedToTheEndOfTheDeck 0.053

IrrigationLayerTest$TestConstructor

defaultIrrigation 0.01

Failure Details

[Summary] [Package List] [Test Cases]


skipped: class com.takenoko.objective.PatternObjectiveTest$TestGetCompletion is @Disabled
skipped: class com.takenoko.bot.GeneralTacticBotTest$TestAnalyzeBoardToFindPlaceToCompleteShapeOfPatternObjective is @Disabled