mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 18:46:13 +00:00
This is the real fix for MessagingTests.
This commit is contained in:
parent
3651e672d4
commit
2a2aef53fb
1 changed files with 1 additions and 4 deletions
|
@ -79,9 +79,6 @@ public class MessagingTest {
|
||||||
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
||||||
assertNull(console.getReplyRecipient()); // console never messaged or received messages from anyone.
|
assertNull(console.getReplyRecipient()); // console never messaged or received messages from anyone.
|
||||||
|
|
||||||
// console should now have its reply-recipient as user1, since the console doesn't have a previous recipient.
|
|
||||||
assertEquals(console.getReplyRecipient(), user1);
|
|
||||||
|
|
||||||
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
||||||
runCommand("r", user1, "This is me sending you a message using /r without you replying!");
|
runCommand("r", user1, "This is me sending you a message using /r without you replying!");
|
||||||
}
|
}
|
||||||
|
@ -110,7 +107,7 @@ public class MessagingTest {
|
||||||
runCommand("msg", user1, console.getName() + " Hey, master!");
|
runCommand("msg", user1, console.getName() + " Hey, master!");
|
||||||
|
|
||||||
// console should now have its reply-recipient as user1, since the console doesn't have a previous recipient.
|
// console should now have its reply-recipient as user1, since the console doesn't have a previous recipient.
|
||||||
assertEquals(console.getReplyRecipient(), user1);
|
assertEquals(user1, console.getReplyRecipient());
|
||||||
|
|
||||||
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
||||||
runCommand("r", user1, "This is me sending you a message using /r without you replying!");
|
runCommand("r", user1, "This is me sending you a message using /r without you replying!");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue