From 683f5dfb3afa6bdf9524dd934096845554223bd7 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 1 Aug 2024 12:14:09 -0700 Subject: [PATCH] Fixed test imports --- src/test/java/rife/bld/operations/TestJlinkOperation.java | 6 +++--- src/test/java/rife/bld/operations/TestJmodOperation.java | 6 +++--- .../java/rife/bld/operations/TestJpackageOperation.java | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/rife/bld/operations/TestJlinkOperation.java b/src/test/java/rife/bld/operations/TestJlinkOperation.java index 007ffd2..c46c9dc 100644 --- a/src/test/java/rife/bld/operations/TestJlinkOperation.java +++ b/src/test/java/rife/bld/operations/TestJlinkOperation.java @@ -5,7 +5,7 @@ package rife.bld.operations; -import org.junit.Test; +import org.junit.jupiter.api.Test; import rife.bld.operations.exceptions.ExitStatusException; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; @@ -13,13 +13,13 @@ public class TestJlinkOperation { @Test - public void TestNoArguments() { + void testNoArguments() { var jlink = new JlinkOperation(); assertThrows(ExitStatusException.class, jlink::execute); } @Test - public void TestVersion() { + void testVersion() { var jlink = new JlinkOperation().toolArg("--version"); assertDoesNotThrow(jlink::execute); } diff --git a/src/test/java/rife/bld/operations/TestJmodOperation.java b/src/test/java/rife/bld/operations/TestJmodOperation.java index 8767ecb..61c1a39 100644 --- a/src/test/java/rife/bld/operations/TestJmodOperation.java +++ b/src/test/java/rife/bld/operations/TestJmodOperation.java @@ -5,7 +5,7 @@ package rife.bld.operations; -import org.junit.Test; +import org.junit.jupiter.api.Test; import rife.bld.operations.exceptions.ExitStatusException; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; @@ -13,13 +13,13 @@ public class TestJmodOperation { @Test - public void TestNoArguments() { + void testNoArguments() { var jmod = new JmodOperation(); assertThrows(ExitStatusException.class, jmod::execute); } @Test - public void TestVersion() { + void testVersion() { var jmod = new JmodOperation().operationMode(JmodOperation.OperationMode.DESCRIBE).toolArg("--version"); assertDoesNotThrow(jmod::execute); } diff --git a/src/test/java/rife/bld/operations/TestJpackageOperation.java b/src/test/java/rife/bld/operations/TestJpackageOperation.java index 4850fc2..15c4e5d 100644 --- a/src/test/java/rife/bld/operations/TestJpackageOperation.java +++ b/src/test/java/rife/bld/operations/TestJpackageOperation.java @@ -5,7 +5,7 @@ package rife.bld.operations; -import org.junit.Test; +import org.junit.jupiter.api.Test; import rife.bld.operations.exceptions.ExitStatusException; import java.io.File; @@ -15,7 +15,7 @@ public class TestJpackageOperation { @Test - public void TestCreatePackage() throws Exception { + void testCreatePackage() throws Exception { var tmpdir = Files.createTempDirectory("bld-jpackage-test").toFile(); tmpdir.deleteOnExit(); var options = new JpackageOptions() @@ -43,13 +43,13 @@ public void TestCreatePackage() throws Exception { } @Test - public void TestNoArguments() { + void testNoArguments() { var jpackage = new JpackageOperation(); assertThrows(ExitStatusException.class, jpackage::execute); } @Test - public void TestVersion() { + void testVersion() { var jpackage = new JpackageOperation().toolArg("--version"); assertDoesNotThrow(jpackage::execute); }