From c63aa46f225b5456fe982bf4201e75ba4529d7d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 25 Sep 2021 18:20:33 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=8E=A8=20Use=20static=20imports=20in=20tes?= =?utf8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/test/java/net/pterodactylus/xdcc/data/BotTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); } } -- 2.7.4