TestGameClock including testing of the methods:
- timeCoversion()
- updateGameTime()
- startTime()
- endTime()
The following tests were performed to ensure that behavior was preserved and correct after refactoring/changes:
Weapon Tests including testing of the methods:
- dealDam()
- bulletCriticalHit()
Enemy Tests including testing of the methods:
- die()
Cheats Tests including testing of the methods:
- cheatGateway() ** This method is tested for the 'givemeitall' cheat, the 'weaponstash' cheat, and the 'thirstforfood' cheat.
Armour Tests including testing of the methods:
- choose()
- getArmours()
Weapon Tests including testing of the methods:
- set(int i)
- choose()
- getWeapons()
Enemy Tests including testing of the methods:
- set(int i)
- get()
- getIndex(Enemy i)
- findEnemy()
- getEnemies()
Food Tests including testing of the methods:
- choose()
- getFoods()
Cheats Tests including testing of the methods:
- cheatGateway() ** This method is tested for the 'givemeitall' cheat, the 'weaponstash' cheat, and the 'thirstforfood' cheat.
Debug Tests including testing of the methods:
- menu() ** This method is tested for weapon and food debugging
- ArmourTest: testChooseOnly, testChooseFirst, testChooseMiddle, testChooseLast
- CheatsTest: testCheatGatewaygivemeitall, testCheatGatewayweaponstash, testCheatGatewaythirstforfood
- DebugTest: testMenuWeapon, testMenuFood
- FoodTest: testListChooseFirst, testListChooseMiddle, testListChooseLast
- WeaponTest: testChooseFirst, testChooseMiddle, testChooseLast
Potion Tests including testing of the methods:
- get(String kind)
- set(String kind, int amount, boolean add)
- use(String k)
- used(String kind)