Surefire Report

Summary


TestsErrors FailuresSkippedSuccess RateTime
9701098.969%16.78

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

Package List


PackageTestsErrors FailuresSkippedSuccess RateTime
net.sf.mpango.game.core.service3000100%0.069
net.sf.mpango.game.core.dao4000100%0.19
net.sf.mpango.game.core.events13000100%0.013
net.sf.mpango.game.core.action9000100%0.706
net.sf.mpango.game.core.battle2000100%0.078
net.sf.mpango.game.core.factory4000100%0.006
net.sf.mpango.game.core.entity3801097.368%15.473
net.sf.mpango.game.core.turn3000100%0.024
net.sf.mpango.game.core.builder21000100%0.221

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

net.sf.mpango.game.core.service

ClassTestsErrors FailuresSkippedSuccess RateTime
GameServiceTest1000100%0.053
PlayerServiceImplTest2000100%0.016

net.sf.mpango.game.core.dao

ClassTestsErrors FailuresSkippedSuccess RateTime
HibernateGameContextDAOImplTest4000100%0.19

net.sf.mpango.game.core.events

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractEventTest1000100%0.001
AbstractListenerObservableTest4000100%0.004
AbstractListenerTest5000100%0.002
EventChannelTest3000100%0.006

net.sf.mpango.game.core.action

ClassTestsErrors FailuresSkippedSuccess RateTime
CollectCommandTest1000100%0.327
ConstructCommandTest6000100%0.37
TaskCommandTest2000100%0.009

net.sf.mpango.game.core.battle

ClassTestsErrors FailuresSkippedSuccess RateTime
BattleEngineTest2000100%0.078

net.sf.mpango.game.core.factory

ClassTestsErrors FailuresSkippedSuccess RateTime
BoardFactoryTest2000100%0.005
ConstructionFactoryTest2000100%0.001

net.sf.mpango.game.core.entity

ClassTestsErrors FailuresSkippedSuccess RateTime
CellTest4000100%0.001
CityTest4000100%0.002
FleetTest10000100%0.208
GameBoardTest2000100%0.002
GameContextTest3000100%0.042
ShieldTest3000100%0.001
UnitTest1201091.667%15.217

net.sf.mpango.game.core.turn

ClassTestsErrors FailuresSkippedSuccess RateTime
TimerTest2000100%0.012
TurnEngineTest1000100%0.012

net.sf.mpango.game.core.builder

ClassTestsErrors FailuresSkippedSuccess RateTime
BoardBuilderTest2000100%0.087
CellBuilderTest2000100%0.005
CityBuilderTest2000100%0.004
ConstructionBuilderTest2000100%0.003
GameBoardBuilderTest3000100%0.098
PlayerBuilderTest2000100%0.01
PositionBuilderTest2000100%0.003
ShieldBuilderTest2000100%0.004
TechnologyBuilderTest2000100%0.004
WeaponBuilderTest2000100%0.003

Test Cases

CollectCommandTest

testRunExecute0.29

ConstructCommandTest

testEvaluateFailingExecution0.079
testEvaluateConstructNewCity0.06
testEvaluateConstructCity0.063
testEvaluateConstructNotCityWithoutCityExecution0.055
testCommand0.057
testCalculateTimeSlices0.053

TaskCommandTest

testScheduledExecution0.007
testRun0

BattleEngineTest

testBattleDefenderWin0.042
testBattleAttackerWin0.031

BoardBuilderTest

testGameBoardFactory0.084
testCellBuilder0.002

CellBuilderTest

testBuildCell0
testCellBuilderList0.004

CityBuilderTest

testCityBuilder0
testCityBuilderList0.001

ConstructionBuilderTest

testCityBuilder0.001
testCityBuilderList0.002

GameBoardBuilderTest

testBuildGameBoard0.013
testBuildGameBoardFor0.022
testBuildList0.06

PlayerBuilderTest

testBuildList0.007
testBuildPlayerNullObj0.001

PositionBuilderTest

testBuildList0.001
testBuildPosition0

ShieldBuilderTest

testBuildList0.003
testBuildShield0

TechnologyBuilderTest

testBuildList0.002
testBuildTechnology0

WeaponBuilderTest

TestBuildWeapon0.001
TestBuildList0.001

HibernateGameContextDAOImplTest

testSave0.083
testUpdate0.033
testLoad0.032
testList0.033

CellTest

testCalculateBasicDefenseBonus0
testCalculateBasicAttackBonus0.001
testCalculateUnexistingConstructionDefenseBonus0
testCalculateUnexistingConstructionAttackBonus0

CityTest

testAddNewResources0
testAddExistingResources0.001
testSubstractEnoughResources0
testSubstractNotEnoughResources0

FleetTest

testAddUnit0.013
testRemoveUnexisting0.013
testAddTwoOfficials0.026
testRemoveUnit0.013
testReceiveAttackWithNoAttackingUnits0
testReceiveAttackA1D00.013
testReceiveAttackA1D1DW0.026
testReceiveAttackA1D1AW0.031
testFightRepeatingAttacker0.038
testFightRepeatingDefender0.033

GameBoardTest

testGetExistingCell0
testGetUnexistingCell0

GameContextTest

testPlayerJoins0.015
testGenerateRandomPosition0.012
testGenerateStartingUnits0.013

ShieldTest

testDamage0
testRepair0
testInvalidReuse0

UnitTest

testEffectiveAttackPoints0.001
testSurviving0
testKilling0.001
testWeapon0
testDamageShield0
testDestroyShield0.001
testAddFirstCommand0
testExecuteTaskCommand 1.006
The command should have been executed by now
testAddSecondCommand0
testAddSecondCommandAfterCommandTask1.102
testAddSecondTaskCommand2.003
testSettle11.101

AbstractEventTest

testGetSource0.001

AbstractListenerObservableTest

testReceiveEvent0.001
testNotifyAllListeners0.001
testAddListener0
testRemoveListener0

AbstractListenerTest

testDefaultReceiveEvent0
testReceiveSupportedEvent0
testReceiveSupportedEventAsNotSupported0
testReceiveSupportedEventInUnsupportedReference0.001
testReceiveUnsupportedEvent0

EventChannelTest

testAddListener0
testRemoveListener0.001
testDispatch0.002

BoardFactoryTest

testGameBoardFactory0.003
testCellFactory0.002

ConstructionFactoryTest

testCityFactory0
testCityFactoryList0.001

GameServiceTest

testJoin0.046

PlayerServiceImplTest

testUserJoinsFirstTime0.009
testUserJoinsSecondTime0.006

TimerTest

testAddCommand0.009
testAddAbstractTaskCommand0.001

TurnEngineTest

testRollTurn0.01

Failure Details


testExecuteTaskCommand
junit.framework.AssertionFailedError: The command should have been executed by now
net.sf.mpango.game.core.entity.UnitTest:85