Skip to content

EntityConverter Test Plan

nreyana edited this page Sep 11, 2024 · 3 revisions

Testing Plan

This details the tests for various features specific to enemy NPCs and tests the removal of their enemy components. These tests are run with each type of enemy NPC that will be available to be used as a friendly NPC companion. These are the chicken, frog and monkey.

These tests can be found in the EntityConverterTest.java file.

  • TestRemovalOfTouchAttack: Tests that the NPC does not interact with the player when in contact, which triggers the combat screen.
  • TestUpdatedCombatStatsHunger: Tests that the converted NPC has a hunger stat of 0.
  • TestUpdatedCombatStatsStrength: Tests that the converted NPC has a strength stat of 0.
  • TestUpdatedCombatStatsDef: Tests that the converted NPC has a defence stat of 0.
  • TestUpdatedCombatStatsSpeed: Tests that the converted NPC has a speed stat of 0.
  • TestUpdatedCombatStatsXP: Tests that the converted NPC has 0 experience.
  • TestHasFriendlyAI: Tests that the converted NPC has a friendly AI controller.
Clone this wiki locally