mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 00:07:12 -07:00
Fixed test imports
This commit is contained in:
parent
547b20a242
commit
683f5dfb3a
3 changed files with 10 additions and 10 deletions
|
@ -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 @@ 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);
|
||||
}
|
||||
|
|
|
@ -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 @@ 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);
|
||||
}
|
||||
|
|
|
@ -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 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||
|
||||
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 class TestJpackageOperation {
|
|||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue