From 5578437ddeb7a1d22ed29669f994f580a38f9bd8 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Mon, 9 Nov 2020 00:42:43 +0400 Subject: [PATCH] * GUI: increased ignore list max size from 100 to 500; --- Mage.Client/src/main/java/mage/client/util/IgnoreList.java | 2 +- .../src/test/java/mage/client/util/IgnoreListTest.java | 6 +++--- .../cost/modaldoublefaces/ModalDoubleFacesCardsTest.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/util/IgnoreList.java b/Mage.Client/src/main/java/mage/client/util/IgnoreList.java index 1e8483f1e0..964887d554 100644 --- a/Mage.Client/src/main/java/mage/client/util/IgnoreList.java +++ b/Mage.Client/src/main/java/mage/client/util/IgnoreList.java @@ -17,7 +17,7 @@ public final class IgnoreList { + "
\\ignore username - add username to ignore list (they won't be able to chat or join to your new game)." + "
\\unignore username - remove a username from your ignore list on this server."; - public static final int MAX_IGNORE_LIST_SIZE = 100; + public static final int MAX_IGNORE_LIST_SIZE = 500; public static final Set IGNORED_MESSAGE_TYPES = ImmutableSet.of(ChatMessage.MessageType.TALK, ChatMessage.MessageType.WHISPER_FROM); diff --git a/Mage.Client/src/test/java/mage/client/util/IgnoreListTest.java b/Mage.Client/src/test/java/mage/client/util/IgnoreListTest.java index 73f345cf5d..2eab361fe6 100644 --- a/Mage.Client/src/test/java/mage/client/util/IgnoreListTest.java +++ b/Mage.Client/src/test/java/mage/client/util/IgnoreListTest.java @@ -63,12 +63,12 @@ public class IgnoreListTest { @Test public void ignoreMaxSize() throws Exception { - for (int i = 0; i < 100; i++) { + for (int i = 0; i < 500; i++) { IgnoreList.ignore("test.com.xx", "" + i); } final String r = IgnoreList.ignore("test.com.xx", "lul"); - assertEquals(r, "Your ignore list is too big (max 100), remove a user to be able to add a new one."); - assertThat(IgnoreList.getIgnoredUsers("test.com.xx").size(), is(100)); + assertEquals(r, "Your ignore list is too big (max 500), remove a user to be able to add a new one."); + assertThat(IgnoreList.getIgnoredUsers("test.com.xx").size(), is(500)); } @Test diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/cost/modaldoublefaces/ModalDoubleFacesCardsTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/cost/modaldoublefaces/ModalDoubleFacesCardsTest.java index b15a176407..d024dea0c2 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/cost/modaldoublefaces/ModalDoubleFacesCardsTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/cost/modaldoublefaces/ModalDoubleFacesCardsTest.java @@ -517,7 +517,7 @@ public class ModalDoubleFacesCardsTest extends CardTestPlayerBase { } @Test - public void test_Single_GlasspoolMimic_FromNonHand() { + public void test_Single_GlasspoolMimic_PutToHand() { // https://github.com/magefree/mage/issues/7174 // Glasspool Mimic