mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 16:27:11 -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;
|
package rife.bld.operations;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.operations.exceptions.ExitStatusException;
|
import rife.bld.operations.exceptions.ExitStatusException;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
@ -13,13 +13,13 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||||
|
|
||||||
public class TestJlinkOperation {
|
public class TestJlinkOperation {
|
||||||
@Test
|
@Test
|
||||||
public void TestNoArguments() {
|
void testNoArguments() {
|
||||||
var jlink = new JlinkOperation();
|
var jlink = new JlinkOperation();
|
||||||
assertThrows(ExitStatusException.class, jlink::execute);
|
assertThrows(ExitStatusException.class, jlink::execute);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void TestVersion() {
|
void testVersion() {
|
||||||
var jlink = new JlinkOperation().toolArg("--version");
|
var jlink = new JlinkOperation().toolArg("--version");
|
||||||
assertDoesNotThrow(jlink::execute);
|
assertDoesNotThrow(jlink::execute);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
package rife.bld.operations;
|
package rife.bld.operations;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.operations.exceptions.ExitStatusException;
|
import rife.bld.operations.exceptions.ExitStatusException;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
@ -13,13 +13,13 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||||
|
|
||||||
public class TestJmodOperation {
|
public class TestJmodOperation {
|
||||||
@Test
|
@Test
|
||||||
public void TestNoArguments() {
|
void testNoArguments() {
|
||||||
var jmod = new JmodOperation();
|
var jmod = new JmodOperation();
|
||||||
assertThrows(ExitStatusException.class, jmod::execute);
|
assertThrows(ExitStatusException.class, jmod::execute);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void TestVersion() {
|
void testVersion() {
|
||||||
var jmod = new JmodOperation().operationMode(JmodOperation.OperationMode.DESCRIBE).toolArg("--version");
|
var jmod = new JmodOperation().operationMode(JmodOperation.OperationMode.DESCRIBE).toolArg("--version");
|
||||||
assertDoesNotThrow(jmod::execute);
|
assertDoesNotThrow(jmod::execute);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
package rife.bld.operations;
|
package rife.bld.operations;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.operations.exceptions.ExitStatusException;
|
import rife.bld.operations.exceptions.ExitStatusException;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -15,7 +15,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
public class TestJpackageOperation {
|
public class TestJpackageOperation {
|
||||||
@Test
|
@Test
|
||||||
public void TestCreatePackage() throws Exception {
|
void testCreatePackage() throws Exception {
|
||||||
var tmpdir = Files.createTempDirectory("bld-jpackage-test").toFile();
|
var tmpdir = Files.createTempDirectory("bld-jpackage-test").toFile();
|
||||||
tmpdir.deleteOnExit();
|
tmpdir.deleteOnExit();
|
||||||
var options = new JpackageOptions()
|
var options = new JpackageOptions()
|
||||||
|
@ -43,13 +43,13 @@ public class TestJpackageOperation {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void TestNoArguments() {
|
void testNoArguments() {
|
||||||
var jpackage = new JpackageOperation();
|
var jpackage = new JpackageOperation();
|
||||||
assertThrows(ExitStatusException.class, jpackage::execute);
|
assertThrows(ExitStatusException.class, jpackage::execute);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void TestVersion() {
|
void testVersion() {
|
||||||
var jpackage = new JpackageOperation().toolArg("--version");
|
var jpackage = new JpackageOperation().toolArg("--version");
|
||||||
assertDoesNotThrow(jpackage::execute);
|
assertDoesNotThrow(jpackage::execute);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue