Rename and fix MessagingTest.

This commit is contained in:
Ali Moghnieh 2015-10-28 13:37:17 +00:00
parent 447b9db397
commit fb4af9fefc

View file

@ -73,7 +73,7 @@ public class MessagingTest {
}
@Test(expected = Exception.class) // I really don't like this, but see note below about console reply
public void testMessage() throws Exception {
public void testLastMessageReplyRecipient() throws Exception {
User user1 = ess.getUser(base1);
Console console = Console.getInstance();
@ -98,7 +98,7 @@ public class MessagingTest {
// This throws Exception because the base1 is an OfflinePlayer (isOnline() returns false).
runConsoleCommand("r", "Hey, son!");
} else {
assertNull(console.getReplyRecipient()); // user2 never received messages from anyone.
throw new Exception(); // Needed to prevent build failures.
}
}
}