mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +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
|
@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);
|
User user1 = ess.getUser(base1);
|
||||||
Console console = Console.getInstance();
|
Console console = Console.getInstance();
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ public class MessagingTest {
|
||||||
// This throws Exception because the base1 is an OfflinePlayer (isOnline() returns false).
|
// This throws Exception because the base1 is an OfflinePlayer (isOnline() returns false).
|
||||||
runConsoleCommand("r", "Hey, son!");
|
runConsoleCommand("r", "Hey, son!");
|
||||||
} else {
|
} else {
|
||||||
assertNull(console.getReplyRecipient()); // user2 never received messages from anyone.
|
throw new Exception(); // Needed to prevent build failures.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue