timers: add divine bastion and battlemage potions
This commit is contained in:
@@ -136,4 +136,30 @@ public class TimersPluginTest
|
||||
TimerTimer infoBox = (TimerTimer) captor.getValue();
|
||||
assertEquals(GameTimer.DMM_FULLTB, infoBox.getTimer());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDivineBastion()
|
||||
{
|
||||
when(timersConfig.showDivine()).thenReturn(true);
|
||||
ChatMessage chatMessage = new ChatMessage(null, ChatMessageType.SPAM, "", "You drink some of your divine bastion potion.", "", 0);
|
||||
timersPlugin.onChatMessage(chatMessage);
|
||||
|
||||
ArgumentCaptor<InfoBox> captor = ArgumentCaptor.forClass(InfoBox.class);
|
||||
verify(infoBoxManager).addInfoBox(captor.capture());
|
||||
TimerTimer infoBox = (TimerTimer) captor.getValue();
|
||||
assertEquals(GameTimer.DIVINE_BASTION, infoBox.getTimer());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDivineBattlemage()
|
||||
{
|
||||
when(timersConfig.showDivine()).thenReturn(true);
|
||||
ChatMessage chatMessage = new ChatMessage(null, ChatMessageType.SPAM, "", "You drink some of your divine battlemage potion.", "", 0);
|
||||
timersPlugin.onChatMessage(chatMessage);
|
||||
|
||||
ArgumentCaptor<InfoBox> captor = ArgumentCaptor.forClass(InfoBox.class);
|
||||
verify(infoBoxManager).addInfoBox(captor.capture());
|
||||
TimerTimer infoBox = (TimerTimer) captor.getValue();
|
||||
assertEquals(GameTimer.DIVINE_BATTLEMAGE, infoBox.getTimer());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user