🎨 Use static imports in test
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 25 Sep 2021 16:20:33 +0000 (18:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 25 Sep 2021 16:20:33 +0000 (18:20 +0200)
src/test/java/net/pterodactylus/xdcc/data/BotTest.java

index 57e3de3..75685a7 100644 (file)
@@ -1,5 +1,8 @@
 package net.pterodactylus.xdcc.data;
 
 package net.pterodactylus.xdcc.data;
 
+import static org.hamcrest.MatcherAssert.*;
+import static org.hamcrest.Matchers.*;
+
 import org.hamcrest.MatcherAssert;
 import org.hamcrest.Matchers;
 import org.junit.Test;
 import org.hamcrest.MatcherAssert;
 import org.hamcrest.Matchers;
 import org.junit.Test;
@@ -21,7 +24,7 @@ public class BotTest {
        public void addingOneFileWithTwoIdsRemovesTheOldId() {
                bot.addPack(oldPack);
                bot.addPack(newPack);
        public void addingOneFileWithTwoIdsRemovesTheOldId() {
                bot.addPack(oldPack);
                bot.addPack(newPack);
-               MatcherAssert.assertThat(bot.packs(), Matchers.contains(newPack));
+               assertThat(bot.packs(), contains(newPack));
        }
 
 }
        }
 
 }