Stendhal Quest Testing: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>MartinFuchs
imported>MartinFuchs
second NPC name occurence
Line 77: Line 77:
@Test
@Test
public void testQuest() {
public void testQuest() {
npc = SingletonRepository.getNPCList().get(TODO_Name);
npc = SingletonRepository.getNPCList().get(TODO_NPC_Name);
</source>
</source>


Line 93: Line 93:
This is the class name of the quest file you are testing. For us, that's RainbowBeans.
This is the class name of the quest file you are testing. For us, that's RainbowBeans.


===TODO_Name===
===TODO_NPC_Name===
Fill in here, the name of the first NPC you spoke to for the quest. Put it in quotes : SingletonRepository.getNPCList().get("Pdiddi");
Fill in here, the name of the first NPC you spoke to for the quest. Put it in quotes: "Pdiddi" in the constructor RainbowBeansTest().
And once in the testQuest() function: SingletonRepository.getNPCList().get("Pdiddi");


Now the errors should be gone:
Now the errors should be gone: