screenshot plugin: capture ToB rewards

This commit is contained in:
Magic fTail
2018-07-18 02:16:28 +02:00
committed by Adam
parent 394135e912
commit ddc14df306
3 changed files with 42 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ public class ScreenshotPluginTest
private static final String CLUE_SCROLL = "<col=3300ff>You have completed 28 medium Treasure Trails</col>";
private static final String BARROWS_CHEST = "Your Barrows chest count is <col=ff0000>310</col>";
private static final String CHAMBERS_OF_XERIC_CHEST = "Your completed Chambers of Xeric count is: <col=ff0000>489</col>.";
private static final String THEATRE_OF_BLOOD_CHEST = "Your completed Theatre of Blood count is: <col=ff0000>73</col>.";
@Mock
@Bind
@@ -130,6 +131,15 @@ public class ScreenshotPluginTest
assertEquals(489, screenshotPlugin.getChambersOfXericNumber());
}
@Test
public void testTheatreOfBloodChest()
{
ChatMessage chatMessageEvent = new ChatMessage(SERVER, "Magic fTail", THEATRE_OF_BLOOD_CHEST, null);
screenshotPlugin.onChatMessage(chatMessageEvent);
assertEquals(73, screenshotPlugin.gettheatreOfBloodNumber());
}
@Test
public void testHitpointsLevel99()
{