Skip to content

Commit

Permalink
adjust NPCTest to the new 'idea' values (see Special icon for NPCs wh…
Browse files Browse the repository at this point in the history
…o asked a question or need trigger #3302873)
  • Loading branch information
Martin Fuchs committed May 16, 2011
1 parent 6d4a9d6 commit 56195bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/games/stendhal/server/entity/npc/NPCTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ public void testLogic() {
public void testIdea() {
final SpeakerNPC npc = getNPC("Felina");

assertEquals(null, npc.getIdea());
assertEquals("awaiting", npc.getIdea());
npc.setIdea("walk");
assertEquals("walk", npc.getIdea());

npc.setIdea(null);
assertEquals(null, npc.getIdea());

npc.setIdea("awaiting");
assertEquals("awaiting", npc.getIdea());
}

// players use _hi, _hello etc to avoid npcs answering when it's meant to
Expand Down

0 comments on commit 56195bf

Please sign in to comment.