Stendhal Quest Testing: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>MartinFuchs adding line breaks after "bye" steps is now done automatically |
imported>MartinFuchs derive test class from ZonePlayerAndNPCTestImpl |
||
| Line 43: | Line 43: | ||
<source lang = "java"> |
<source lang = "java"> |
||
public class TODO_Test { |
public class TODO_Test extends ZonePlayerAndNPCTestImpl { |
||
private Player player = null; |
private Player player = null; |
||
| Line 50: | Line 50: | ||
private String questSlot; |
private String questSlot; |
||
private static final String ZONE_NAME = "admin_test" |
|||
@BeforeClass |
@BeforeClass |
||
public static void setUpBeforeClass() throws Exception { |
public static void setUpBeforeClass() throws Exception { |
||
QuestHelper.setUpBeforeClass(); |
QuestHelper.setUpBeforeClass(); |
||
setupZone(ZONE_NAME); |
|||
} |
|||
public TODO_Test() { |
|||
super(ZONE_NAME, TODO_NPC_Name); |
|||
} |
} |
||
| Line 60: | Line 66: | ||
final StendhalRPZone zone = new StendhalRPZone("admin_test"); |
final StendhalRPZone zone = new StendhalRPZone("admin_test"); |
||
new TODO_NPC().configureZone(zone, null); |
new TODO_NPC().configureZone(zone, null); |
||
AbstractQuest quest = new TODO_Quest(); |
AbstractQuest quest = new TODO_Quest(); |
||
| Line 72: | Line 77: | ||
@Test |
@Test |
||
public void testQuest() { |
public void testQuest() { |
||
npc = SingletonRepository.getNPCList().get(TODO_Name); |
npc = SingletonRepository.getNPCList().get(TODO_Name); |
||
</source> |
</source> |
||