Stendhal Quest Testing: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>MartinFuchs |
imported>MartinFuchs derive test class from ZonePlayerAndNPCTestImpl |
||
| Line 99: | Line 99: | ||
<source lang = "java"> |
<source lang = "java"> |
||
public class RainbowBeansTest { |
public class RainbowBeansTest extends ZonePlayerAndNPCTestImpl { |
||
private Player player = null; |
private Player player = null; |
||
| Line 106: | Line 106: | ||
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 RainbowBeansTest() { |
|||
super(ZONE_NAME, TODO_NPC_Name); |
|||
} |
} |
||
| Line 116: | Line 122: | ||
final StendhalRPZone zone = new StendhalRPZone("admin_test"); |
final StendhalRPZone zone = new StendhalRPZone("admin_test"); |
||
new DealerNPC().configureZone(zone, null); |
new DealerNPC().configureZone(zone, null); |
||
AbstractQuest quest = new RainbowBeans(); |
AbstractQuest quest = new RainbowBeans(); |
||
| Line 128: | Line 133: | ||
@Test |
@Test |
||
public void testQuest() { |
public void testQuest() { |
||
npc = SingletonRepository.getNPCList().get("Pdiddi"); |
npc = SingletonRepository.getNPCList().get("Pdiddi"); |
||
</source> |
</source> |
||