From: Katie R. <ky...@us...> - 2010-07-03 22:33:16
|
Update of /cvsroot/arianne/stendhal/tests/games/stendhal/server/maps/quests In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv27201/tests/games/stendhal/server/maps/quests Modified Files: MeetHackimTest.java Log Message: Fixing #3012588 that the Meet Hackim quest needs improvement on how to end it (not going to make him explain that you get 5 money, though). Updated test Index: MeetHackimTest.java =================================================================== RCS file: /cvsroot/arianne/stendhal/tests/games/stendhal/server/maps/quests/MeetHackimTest.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** MeetHackimTest.java 24 Dec 2009 22:54:53 -0000 1.9 --- MeetHackimTest.java 3 Jul 2010 22:33:08 -0000 1.10 *************** *** 2,8 **** import static org.junit.Assert.assertEquals; - import static org.junit.Assert.assertFalse; import static utilities.SpeakerNPCTestHelper.getReply; import games.stendhal.server.core.engine.SingletonRepository; import games.stendhal.server.entity.npc.SpeakerNPC; import games.stendhal.server.entity.npc.SpeakerNPCFactory; --- 2,8 ---- import static org.junit.Assert.assertEquals; import static utilities.SpeakerNPCTestHelper.getReply; import games.stendhal.server.core.engine.SingletonRepository; + import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; import games.stendhal.server.entity.npc.SpeakerNPCFactory; *************** *** 69,81 **** en.step(player, "yes"); assertEquals("Ask him what he has to #offer, and look at what he will let you #buy and #sell. For instance, if you had a studded shield which you didn't want, you could #'sell studded shield'.", getReply(npc)); - npc.remove("text"); en.step(player, "sell"); ! assertFalse(npc.has("text")); ! en.step(player, "offer"); ! assertFalse(npc.has("text")); ! en.step(player, "Xin"); ! assertFalse(npc.has("text")); ! en.step(player, "bye"); ! assertEquals("Bye.", getReply(npc)); } } --- 69,77 ---- en.step(player, "yes"); assertEquals("Ask him what he has to #offer, and look at what he will let you #buy and #sell. For instance, if you had a studded shield which you didn't want, you could #'sell studded shield'.", getReply(npc)); en.step(player, "sell"); ! assertEquals("Guessed who supplies Xin Blanca with the weapons he sells? Well, it's me! I have to avoid raising suspicion, though, " + ! "so I can only smuggle him small weapons. If you want something more powerful, you'll have to venture into the dungeons and kill some of the creatures there for items.\n" + ! "If anybody asks, you don't know me!", getReply(npc)); ! assertEquals(en.getCurrentState(), ConversationStates.IDLE); } } |