Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
43 0 0 3 93.023% 3.542

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

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.inigma.utopia.utils 1 0 0 0 100% 0.005
org.inigma.utopia 3 0 0 0 100% 0.015
org.inigma.utopia.paper 6 0 0 0 100% 0.807
org.inigma.utopia.parser 20 0 0 0 100% 0.471
org.inigma.utopia.calculator 13 0 0 3 76.923% 2.244

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

org.inigma.utopia.utils

Class Tests Errors Failures Skipped Success Rate Time
CalendarUtilsTest 1 0 0 0 100% 0.005

org.inigma.utopia

Class Tests Errors Failures Skipped Success Rate Time
SpellbookTest 1 0 0 0 100% 0.013
CoordinateTest 2 0 0 0 100% 0.002

org.inigma.utopia.paper

Class Tests Errors Failures Skipped Success Rate Time
PaperParserTest 3 0 0 0 100% 0.761
ProvinceStatisticsTest 1 0 0 0 100% 0.022
PaperEventTest 2 0 0 0 100% 0.024

org.inigma.utopia.parser

Class Tests Errors Failures Skipped Success Rate Time
SurveyParserTest 3 0 0 0 100% 0.145
ScienceParserTest 5 0 0 0 100% 0.026
KingdomParserTest 5 0 0 0 100% 0.267
MilitaryParserTest 3 0 0 0 100% 0.017
ProvinceParserTest 4 0 0 0 100% 0.016

org.inigma.utopia.calculator

Class Tests Errors Failures Skipped Success Rate Time
CbAndSomCalculatorTest 10 0 0 2 80% 2.23
MilitaryCalculatorTest 3 0 0 1 66.667% 0.014

Test Cases

SpellbookTest

testParseSpellbook 0.012

CbAndSomCalculatorTest

adjustMilitaryWithGnomeRogue 0.207
adjustMilitaryWithGnomeRogueAgain 0.054
adjustMilitaryWithGnomeRogue2WithTownWatch 0.044
adjustMilitaryWithGnomeRogue3WithTownWatch 0.047
adjustMilitaryWithHumanWarriorWithAggression 0.03
adjustMilitaryWithHumanSage 0.029
adjustMilitaryWithElfWarHero 0.03
skipped
adjustSelfWithTwoMilitaryUnitsOut 0.01
adjustAngelHumanWithArmyOut 0.01
skipped
adjustAngelHumanWith2ArmiesOut 1.789

PaperParserTest

testProvinceParser 0.5
anonymousEvents 0.005
warTest 0.252

ProvinceStatisticsTest

testGenerateScore 0.016

CalendarUtilsTest

testGetCalendarDiff 0.001

CoordinateTest

testNormalConstructor 0.001
testGetIsland 0

SurveyParserTest

checkSelfSurvey 0.012
checkAngelSelfSurvey 0.068
checkAngelEnemySurvey 0.063

ScienceParserTest

checkSelfScience 0.007
checkOrcWarrior 0.003
checkOrcAsHuman 0.003
parseAngelSelfElf 0.003
parseAngelHuman 0.004

KingdomParserTest

testKingdomCoordinateConstructor 0.019
testKingdomParser 0.083
testAngelKingdomParser 0.062
testAngelEnemyKingdomAtWar 0.04
testAngelEnemyKingdomAtCeasefire 0.039

MilitaryParserTest

testProvinceParser 0.005
angelSelfMilitaryAtHome 0.003
angelHumanMerchant1Army 0.006

PaperEventTest

testGetAidEvent 0.02
testIntrakingdomAttackEvent 0.002

MilitaryCalculatorTest

getMatches 0.008
determineDefense 0.003
adjustMilitaryWithCB 0.004
skipped

ProvinceParserTest

testDwarfSage 0.003
testAngelSelfElfWarhero 0.004
testAngelHumanMerchant 0.003
testAngelDarkelfSage 0.003

Failure Details


adjustMilitaryWithElfWarHero
skipped: skipped
adjustAngelHumanWithArmyOut
skipped: skipped
adjustMilitaryWithCB
skipped: skipped