Summary

[ summary] [ package list] [ test cases]

TestsErrorsFailuresSuccess rateTime(s)
326178.12%5.08

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

Package List

[ summary] [ package list] [ test cases]

PackageTestsErrorsFailuresSuccess RateTime
spellcast.beings 700100.00%0.56
spellcast.enchantment 1600100.00%0.38
spellcast.game 7610.00%3.92
spellcast.questions 100100.00%0.15
spellcast.spell 100100.00%0.07

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

spellcast.beings

ClassTestsErrorsFailuresSuccess RateTime
Success BeingTest 700100.00%0.561

spellcast.enchantment

ClassTestsErrorsFailuresSuccess RateTime
Success EnchantmentTest 1600100.00%0.381

spellcast.game

ClassTestsErrorsFailuresSuccess RateTime
Error GameTest 6600.00%0.140
Failure KnifeTest 1010.00%3.776

spellcast.questions

ClassTestsErrorsFailuresSuccess RateTime
Success SelectTargetQuestionTest 100100.00%0.150

spellcast.spell

ClassTestsErrorsFailuresSuccess RateTime
Success SpellTest 100100.00%0.070

Test Cases

[ summary] [ package list] [ test cases]

BeingTest

Success testSetHitPoints0.31
Success testSetMaxHitPoints0.00
Success testShouldDie0.00
Success testTakeDamage0.16
Success testTakeDamageWithResistances0.01
Success testUpdateEnchantments0.02
Success testProperties0.02

EnchantmentTest

Success testAmnesiaEnchantment0.06
Success testConfusionEnchantment0.03
Success testCharmPersonEnchantment0.01
Success testParalysisEnchantment0.01
Success testFearEnchantment0.02
Success testProtectionFromEvilEnchantment0.00
Success testResistHeatEnchantment0.00
Success testResistColdEnchantment0.00
Success testDiseasedEnchantment0.02
Success testPoisonedEnchantment0.02
Success testBlindEnchantment0.02
Success testInvisibleEnchantment0.04
Success testHasteEnchantment0.05
Success testTimeStopEnchantment0.03
Success testDelayedEffectEnchantment0.04
Success testPermanencyEnchantment0.03

GameTest

Error testNewGameIsNotStartedAndEmpty0.12
The validated object is null
Error testGameHasFinished0.00
The validated object is null
Error testAddingWizardsBeforeGameStarted0.00
The validated object is null
Error testAddingWizardsAfterGameStarted0.00
The validated object is null
Error testRemovingWizardsBeforeGameStarted0.01
The validated object is null
Error testRemovingWizardsAfterGameStarted0.00
The validated object is null

KnifeTest

Failure testKnife3.77
Expectation failure on verify: getRightHandGesture(): expected: 1, actual: 0 getLeftHandGesture(): expected: 1, actual: 0 addQuestion(spellcast.questions.SelectTargetQuestion@68c952[requiresATarget=spellcast.damage.KnifeAttack@110a478,id=0,question=question.selectTarget,answer=EasyMock for interface spellcast.beings.IWizard,answers=[EasyMock for interface spellcast.beings.IWizard, EasyMock for interface spellcast.beings.IWizard]]): expected: 1, actual: 0

SelectTargetQuestionTest

Success testSelectTarget0.14

SpellTest

Success testShieldSpell0.06

Failure details

Error testNewGameIsNotStartedAndEmpty
The validated object is null
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testNewGameIsNotStartedAndEmpty(GameTest.java:24)
Error testGameHasFinished
The validated object is null
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testGameHasFinished(GameTest.java:32)
Error testAddingWizardsBeforeGameStarted
The validated object is null
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testAddingWizardsBeforeGameStarted(GameTest.java:39)
Error testAddingWizardsAfterGameStarted
The validated object is null
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testAddingWizardsAfterGameStarted(GameTest.java:50)
Error testRemovingWizardsBeforeGameStarted
The validated object is null
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testRemovingWizardsBeforeGameStarted(GameTest.java:72)
Error testRemovingWizardsAfterGameStarted
The validated object is null
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testRemovingWizardsAfterGameStarted(GameTest.java:83)
Failure testKnife
Expectation failure on verify: getRightHandGesture(): expected: 1, actual: 0 getLeftHandGesture(): expected: 1, actual: 0 addQuestion(spellcast.questions.SelectTargetQuestion@68c952[requiresATarget=spellcast.damage.KnifeAttack@110a478,id=0,question=question.selectTarget,answer=EasyMock for interface spellcast.beings.IWizard,answers=[EasyMock for interface spellcast.beings.IWizard, EasyMock for interface spellcast.beings.IWizard]]): expected: 1, actual: 0
junit.framework.AssertionFailedError: Expectation failure on verify: getRightHandGesture(): expected: 1, actual: 0 getLeftHandGesture(): expected: 1, actual: 0 addQuestion(spellcast.questions.SelectTargetQuestion@68c952[requiresATarget=spellcast.damage.KnifeAttack@110a478,id=0,question=question.selectTarget,answer=EasyMock for interface spellcast.beings.IWizard,answers=[EasyMock for interface spellcast.beings.IWizard, EasyMock for interface spellcast.beings.IWizard]]): expected: 1, actual: 0 at org.easymock.internal.AbstractBehavior.verify(AbstractBehavior.java:63) at org.easymock.internal.ReplayState.verify(ReplayState.java:25) at org.easymock.MockControl.verify(MockControl.java:189) at spellcast.game.KnifeTest.testKnife(KnifeTest.java:77)