Added additional unit test to evaluate the "java -version" command.

This commit is contained in:
Robinson 2022-01-17 22:30:33 +01:00
parent 7ef8999568
commit 519ba4dad2
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 14 additions and 0 deletions

View File

@ -83,6 +83,20 @@ class ProcessExecutorMainTest {
Assert.assertEquals(0, exit.toLong())
}
@Test
fun testJavaVersionAsShellValueIsSomething() {
val exit: String = runBlocking {
Executor()
.command("java", "-version")
.enableRead()
.startAsShell()
.output
.string()
}
Assert.assertTrue(exit.isNotEmpty())
}
@Test
fun testJavaVersion() {
val exit: Int = runBlocking {