mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-25 22:32:35 +02:00
This is the real fix for MessagingTests.
This commit is contained in:
parent
3651e672d4
commit
2a2aef53fb
@ -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…
Reference in New Issue
Block a user