Summary

[ summary] [ package list] [ test cases]

TestsErrorsFailuresSuccess rateTime(s)
6200100,00%0,64

Note: failuresare anticipated and checked for with assertions while errorsare unanticipated.

Package List

[ summary] [ package list] [ test cases]

PackageTestsErrorsFailuresSuccess RateTime
battlehex.controller 700100,00%0,14
battlehex.model.command 300100,00%0,27
battlehex.model.map 5200100,00%0,23

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

battlehex.controller

ClassTestsErrorsFailuresSuccess RateTime
Success BaseStateTest 200100,00%0,047
Success PlacementPendingStateTest 300100,00%0,047
Success TerritorySelectedStateTest 200100,00%0,047

battlehex.model.command

ClassTestsErrorsFailuresSuccess RateTime
Success MapGeneratorTest 300100,00%0,266

battlehex.model.map

ClassTestsErrorsFailuresSuccess RateTime
Success MapTest 1300100,00%0,047
Success MoneyTest 300100,00%0,031
Success SubTerritoryIteratorTest 400100,00%0,031
Success TerritoryTest 2200100,00%0,078
Success TileTest 1000100,00%0,047

Test Cases

[ summary] [ package list] [ test cases]

BaseStateTest

Success testClickAtNullTerritoryIsNoOp0,03
Success testClickAtTerritoryChangesStateToTerritorySelectedState0,02

PlacementPendingStateTest

Success testClickOnNullTerritoryIsNoOp0,03
Success testClickOutsideTerritoryIsNoOp0,00
Success testClickInsideTerritoryForwardsOrderToConsumerAndChangesSelectedTerritory0,02

TerritorySelectedStateTest

Success testClickAtNullTerritoryChangesStateToBaseState0,05
Success testClickAtValidTerritoryDoesNotChangeState0,00

MapGeneratorTest

Success testPopulateEmptyCoordinatesIteratorIsNoOp0,27
Success testPopulateEmptyPlayersIteratorIsNoOp0,00
Success testPopulateGridCreatesProperNumberOfTiles0,00

MapTest

Success testCreateSingleTile0,05
Success testCreateNeighbourTilesNotOwnedBySamePlayer0,00
Success testCreateTwoNeighbourTilesOwnedBySamePlayer0,00
Success testCreateThreeNeighbourContiguousTilesOwnedBySamePlayer0,00
Success testCreateThreeNeighbourDispatchedTilesOwnedBySamePlayer0,00
Success testCaptureAdjacentTileFromLoneTileCreatesCapital0,00
Success testCaptureAdjacentTileFromTerritoryMergesTerritories0,00
Success testTransferTileFromThreeTilesTerritoryKeepsCapital0,00
Success testTransferTileFromTwoTilesTerritoryDestroysCapital0,00
Success testTransferTileFromThreeTilesTerritorySplitsItAndDestroysCapital0,00
Success testTransferMiddleTileFromFiveTilesTerritorySplitsIt0,00
Success testTransferMiddleTileFromFourTilesTerritorySplitsInThreeTerritories0,00
Success testStackOverflowError0,00

MoneyTest

Success testCreatedMoneyIsEmpty0,02
Success testPaymentIncreasesMoney0,00
Success testMoneyTransferedToSavingsUponPayment0,00

SubTerritoryIteratorTest

Success testDoesNotIterateIfTileNotInCollection0,02
Success testDoesNotIterateIfTileAloneInCollection0,00
Success testTwoTilesNotNeighboursAreInTwoDistinctSubTerritories0,02
Success testTwoNeighbourTilesAreInSameSubTerritory0,00

TerritoryTest

Success testTerritoryWithOneTileHasNoCapital0,03
Success testTerritoryWithOneTileOwner0,00
Success testAddNullTileIsNoOp0,00
Success testAddTileToItsOwnTerritoryIsNoOp0,00
Success testAddTileChangesItsTerritory0,02
Success testAddTwoTilesToTerritoryCreatesCapital0,00
Success testTransferTileNotInTerritoryIsNoOp0,00
Success testTransferNullTileToAnotherTerritoryIsNoOp0,00
Success testTransferTileToNullTerritoryIsNoOp0,00
Success testTransferTileToItsTerritoryResetsTerritory0,00
Success testTransferTileToAnotherTerritoryAddsIt0,00
Success testMergeToNullTerritoryIsNoOp0,00
Success testMergeTerritoryWithItselfIsNoOp0,00
Success testMergeTwoTerritoriesBelongingToDifferentPlayersIsNoOp0,00
Success testMergeTerritoriesAddsTilesToOtherTerritoryAndTransfersMoney0,00
Success testTransferFirstTileFromTwoTilesTerritoryDestroysCapital0,00
Success testTransferSecondTileFromTwoTilesTerritoryDestroysCapital0,00
Success testTransferCapitalFromThreeTilesTerritoryReallocatesCapital0,00
Success testRemoveMiddleTileFromThreeTilesTerritorySplitsInTwoTerritories0,00
Success testEmptyTerritoryHasNoIncome0,00
Success testTerritoryWithoutCapitalHasNoIncome0,02
Success testTwoTilesTerritoryHasAnIncomeOfTwo0,00

TileTest

Success testCreateTileAddsItToTerritoryAndFlushes0,03
Success testLoneTileHasItsTerritory0,00
Success testSetSameTerritoryIsNoOp0,00
Success testSetNullTerritoryIsNoOp0,00
Success testSetAnotherTerritoryTransfersTileAndUpdatesItsTerritory0,00
Success testCaptureNullTileIsNoOp0,00
Success testCaptureSameTileIsNoOp0,00
Success testCaptureAnotherTileOfSameTerritoryIsNoOp0,02
Success testCaptureAnotherTileWithNullTerritoryIsNoOp0,00
Success testCaptureAnotherTileChangesItsTerritory0,00