Summary
[
summary] [
package list] [
test cases]
Tests | Errors | Failures | Success rate | Time(s) |
32 | 6 | 1 | 78.12% | 5.08 |
Note:
failuresare anticipated and checked for with assertions while
errorsare unanticipated.
Failure details
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|