mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-11-20 10:09:25 +00:00
Rename and fix MessagingTest.
This commit is contained in:
parent
447b9db397
commit
fb4af9fefc
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue