aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorRaven Szewczyk <git@eigenraven.me>2022-08-27 10:19:57 +0100
committerGitHub <noreply@github.com>2022-08-27 11:19:57 +0200
commit6f31720697bcc351421a4d86ba3bf749375dd12c (patch)
tree3adf8f318f22c892d74cd7c9d30b6dd3f11f11bd /src/test/java
parentc3eac50decd33ee2be8703dfb2ecf9cdc31c2b67 (diff)
downloadGT5-Unofficial-6f31720697bcc351421a4d86ba3bf749375dd12c.tar.gz
GT5-Unofficial-6f31720697bcc351421a4d86ba3bf749375dd12c.tar.bz2
GT5-Unofficial-6f31720697bcc351421a4d86ba3bf749375dd12c.zip
Update buildscript & apply spotless (#1306)
* Update dependencies * Update buildscript, apply spotless
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/gregtech/common/items/CombTypeTest.java13
-rw-r--r--src/test/java/gregtech/globalenergymap/IGlobalWirelessEnergy_UnitTest.java8
2 files changed, 8 insertions, 13 deletions
diff --git a/src/test/java/gregtech/common/items/CombTypeTest.java b/src/test/java/gregtech/common/items/CombTypeTest.java
index 0f55d0afd1..f140c81467 100644
--- a/src/test/java/gregtech/common/items/CombTypeTest.java
+++ b/src/test/java/gregtech/common/items/CombTypeTest.java
@@ -1,12 +1,11 @@
package gregtech.common.items;
-import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.HashSet;
import java.util.Set;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertTrue;
+import org.junit.jupiter.api.Test;
class CombTypeTest {
@Test
@@ -20,10 +19,8 @@ class CombTypeTest {
@Test
void noNegativeID() {
for (CombType value : CombType.values()) {
- if (value == CombType._NULL)
- assertTrue(value.getId() <= 0, "Comb type ID must be negative for _NULL");
- else
- assertTrue(value.getId() >= 0, "Comb type ID must not be negative");
+ if (value == CombType._NULL) assertTrue(value.getId() <= 0, "Comb type ID must be negative for _NULL");
+ else assertTrue(value.getId() >= 0, "Comb type ID must not be negative");
}
}
diff --git a/src/test/java/gregtech/globalenergymap/IGlobalWirelessEnergy_UnitTest.java b/src/test/java/gregtech/globalenergymap/IGlobalWirelessEnergy_UnitTest.java
index 61b7fa758c..81b48bb7d6 100644
--- a/src/test/java/gregtech/globalenergymap/IGlobalWirelessEnergy_UnitTest.java
+++ b/src/test/java/gregtech/globalenergymap/IGlobalWirelessEnergy_UnitTest.java
@@ -1,11 +1,10 @@
package gregtech.globalenergymap;
-import gregtech.api.interfaces.IGlobalWirelessEnergy;
-import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.*;
+import gregtech.api.interfaces.IGlobalWirelessEnergy;
import java.math.BigInteger;
-
-import static org.junit.jupiter.api.Assertions.*;
+import org.junit.jupiter.api.Test;
class IGlobalWirelessEnergy_UnitTest implements IGlobalWirelessEnergy {
@@ -70,7 +69,6 @@ class IGlobalWirelessEnergy_UnitTest implements IGlobalWirelessEnergy {
@Test
void IGlobalWirelessEnergy_NameChange() {
-
String user_uuid = "12345";
String user_name_0 = "Colen";