From df6b41baa51d5947ce7789cbcfe572555279ce87 Mon Sep 17 00:00:00 2001 From: Fulminazzo Date: Sat, 13 Apr 2024 01:07:50 +0200 Subject: [PATCH] Refactored code --- build.gradle | 2 +- .../src/test/java/it/angrybear/yagl/utils/GUITestUtils.java | 1 - .../src/test/java/it/angrybear/yagl/items/BukkitItemTest.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 5e7f55ad..82ca2f5f 100644 --- a/build.gradle +++ b/build.gradle @@ -112,7 +112,7 @@ allprojects { } if (!projectName.contains("-")) - subprojects.findAll { !it.name.equals(TEST_MODULE) } .each {api project(it.path)} + subprojects.findAll { (it.name != TEST_MODULE) } .each {api project(it.path)} testCompileOnly libs.lombok testAnnotationProcessor libs.lombok diff --git a/gui/bukkit/src/test/java/it/angrybear/yagl/utils/GUITestUtils.java b/gui/bukkit/src/test/java/it/angrybear/yagl/utils/GUITestUtils.java index d803baf3..d261c426 100644 --- a/gui/bukkit/src/test/java/it/angrybear/yagl/utils/GUITestUtils.java +++ b/gui/bukkit/src/test/java/it/angrybear/yagl/utils/GUITestUtils.java @@ -9,7 +9,6 @@ import java.util.function.Consumer; -import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; /** diff --git a/item/bukkit/src/test/java/it/angrybear/yagl/items/BukkitItemTest.java b/item/bukkit/src/test/java/it/angrybear/yagl/items/BukkitItemTest.java index 909dff5c..83f3abc9 100644 --- a/item/bukkit/src/test/java/it/angrybear/yagl/items/BukkitItemTest.java +++ b/item/bukkit/src/test/java/it/angrybear/yagl/items/BukkitItemTest.java @@ -18,7 +18,6 @@ import org.mockito.MockedStatic; import java.lang.reflect.Method; -import java.util.Arrays; import java.util.Collections; import static org.junit.jupiter.api.Assertions.*;