Stendhal Quest Testing: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara |
imported>Kymara |
||
| Line 161: | Line 161: | ||
<source lang = "java"> |
<source lang = "java"> |
||
PlayerTestHelper.equipWithMoney(player, 2000); |
PlayerTestHelper.equipWithMoney(player, 2000); |
||
</source> |
|||
The next error that comes is because when we tested we manually changed the quest slot so that we could come back and try again, to repeat it: |
|||
<pre> |
|||
org.junit.ComparisonFailure: expected:<[Oi, you. Back for more rainbow beans?]> but was:<[Alright? I hope you don't want more beans. You can't take more of that stuff for at least another 6 hours.]> |
|||
</pre> |
|||
So we need to do that to our player, as the comment hints: |
|||
<source lang = "java"> |
|||
// [11:36] Admin superkym changed your state of the quest 'rainbow_beans' from 'bought;1289129695296;taken;-1' to 'bought;0;taken;0' |
|||
player.setQuest(questSlot,"bought;0;taken;0"); |
|||
</source> |
</source> |
||