Stendhal Quest Testing: Difference between revisions

Content deleted Content added
imported>MartinFuchs
imported>MartinFuchs
second NPC name occurence
Line 77:
@Test
public void testQuest() {
npc = SingletonRepository.getNPCList().get(TODO_NameTODO_NPC_Name);
</source>
 
Line 93:
This is the class name of the quest file you are testing. For us, that's RainbowBeans.
 
===TODO_NameTODO_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" in the constructor RainbowBeansTest();.
And once in the testQuest() function: SingletonRepository.getNPCList().get("Pdiddi");
 
Now the errors should be gone: