Skip to content

Commit

Permalink
Fixed test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Aug 1, 2024
1 parent 547b20a commit 683f5df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/test/java/rife/bld/operations/TestJlinkOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

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;
import static org.junit.jupiter.api.Assertions.assertThrows;

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);
}
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/rife/bld/operations/TestJmodOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

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;
import static org.junit.jupiter.api.Assertions.assertThrows;

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);
}
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/rife/bld/operations/TestJpackageOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 683f5df

Please sign in to comment.