From: David ‘Bombe’ Roden Date: Sat, 25 Sep 2021 16:20:33 +0000 (+0200) Subject: 🎨 Use static imports in test X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c63aa46f225b5456fe982bf4201e75ba4529d7d6;p=xudocci.git 🎨 Use static imports in test --- diff --git a/src/test/java/net/pterodactylus/xdcc/data/BotTest.java b/src/test/java/net/pterodactylus/xdcc/data/BotTest.java index 57e3de3..75685a7 100644 --- a/src/test/java/net/pterodactylus/xdcc/data/BotTest.java +++ b/src/test/java/net/pterodactylus/xdcc/data/BotTest.java @@ -1,5 +1,8 @@ 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; @@ -21,7 +24,7 @@ public class BotTest { public void addingOneFileWithTwoIdsRemovesTheOldId() { bot.addPack(oldPack); bot.addPack(newPack); - MatcherAssert.assertThat(bot.packs(), Matchers.contains(newPack)); + assertThat(bot.packs(), contains(newPack)); } }