/** Tests for fire. */ @Test public final void testFire() { assertFalse( new LevelLessThanCondition(99) .fire(level100Player, ConversationParser.parse("lessthan"), null)); assertFalse( new LevelLessThanCondition(100) .fire(level100Player, ConversationParser.parse("lessthan"), null)); assertTrue( new LevelLessThanCondition(101) .fire(level100Player, ConversationParser.parse("lessthan"), null)); }
/** Tests for fire. */ @Test public void testFire() { assertTrue( new AdminCondition(0) .fire( createPlayer("player"), ConversationParser.parse("testAdminConditionText"), SpeakerNPCTestHelper.createSpeakerNPC())); assertFalse( new AdminCondition() .fire( createPlayer("player"), ConversationParser.parse("testAdminConditionText"), SpeakerNPCTestHelper.createSpeakerNPC())); }
/** Tests for fireThrowsNullPointerException. */ @Test(expected = NullPointerException.class) public void testFireThrowsNullPointerException() { new AdminCondition(100) .fire( null, ConversationParser.parse("testAdminConditionText"), SpeakerNPCTestHelper.createSpeakerNPC()); }