commit 7a56628e6a760dee6e2e0a6ace7c2552378e5f97
parent fe5c7af4a4b7bc65df70aa06de19fed00785daf2
Author: Wim Dupont <wim@wimdupont.com>
Date: Mon, 23 May 2022 19:18:55 +0200
fix tests
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java b/src/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java
@@ -17,7 +17,6 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
import java.util.List;
import java.util.Optional;
-import static com.google.common.collect.Lists.newArrayList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -45,7 +44,7 @@ class HiScoreClientTest {
@Test
void getHiScoreStatsValid() {
String playerName = "Zxxy";
- List<OsrsHiscoreStat> osrsHiscoreStats = newArrayList(OsrsHiscoreStat.builder()
+ List<OsrsHiscoreStat> osrsHiscoreStats = List.of(OsrsHiscoreStat.builder()
.name("Overall")
.orderValue(0)
.build(),
@@ -79,7 +78,7 @@ class HiScoreClientTest {
@Test
void getHiscoreBossKcValidKbdKc() {
String playerName = "Zxxy";
- List<OsrsHiscoreBoss> hiscoreBosses = newArrayList(OsrsHiscoreBoss.builder()
+ List<OsrsHiscoreBoss> hiscoreBosses = List.of(OsrsHiscoreBoss.builder()
.name("KBD")
.orderValue(59)
.build(),