cleaned up test class names
This commit is contained in:
parent
563f2e062b
commit
374e0bf29f
@ -32,7 +32,7 @@ import org.junit.Test
|
|||||||
*
|
*
|
||||||
* @see ArgumentsAsList
|
* @see ArgumentsAsList
|
||||||
*/
|
*/
|
||||||
class ProcessExecutorArgsWithExtraSpaceTest {
|
class ArgsWithExtraSpaceTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testReadOutputAndError() {
|
fun testReadOutputAndError() {
|
@ -25,7 +25,7 @@ import kotlinx.coroutines.runBlocking
|
|||||||
import org.junit.Assert
|
import org.junit.Assert
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests reading large output that doesn't fit into a buffer between this process and sub process.
|
* Tests reading large output that doesn't fit into a buffer between this process and sub process.
|
||||||
@ -36,7 +36,7 @@ import java.util.concurrent.TimeUnit
|
|||||||
*
|
*
|
||||||
* @see BigOutput
|
* @see BigOutput
|
||||||
*/
|
*/
|
||||||
class ProcessExecutorBigOutputTest {
|
class BigOutputTest {
|
||||||
companion object {
|
companion object {
|
||||||
private fun repeat(s: String): String {
|
private fun repeat(s: String): String {
|
||||||
val sb = StringBuffer(BigOutput.LENGTH)
|
val sb = StringBuffer(BigOutput.LENGTH)
|
@ -30,7 +30,7 @@ import org.hamcrest.MatcherAssert
|
|||||||
import org.junit.Assert
|
import org.junit.Assert
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
class ProcessExecutorCancelJavaTest {
|
class CancelJavaTest {
|
||||||
private val javaCommand: String by lazy {
|
private val javaCommand: String by lazy {
|
||||||
TestSetup.getFile(HelloWorld::class.java)
|
TestSetup.getFile(HelloWorld::class.java)
|
||||||
}
|
}
|
@ -31,7 +31,7 @@ import org.junit.Assert
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class ProcessExecutorCancelTest {
|
class CancelTest {
|
||||||
private val writerLoopCommand: List<String> by lazy {
|
private val writerLoopCommand: List<String> by lazy {
|
||||||
listOf("java", TestSetup.getFile(Loop::class.java))
|
listOf("java", TestSetup.getFile(Loop::class.java))
|
||||||
}
|
}
|
@ -24,12 +24,12 @@ import org.junit.Assert
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.concurrent.TimeoutException
|
import java.util.concurrent.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests passing command line arguments to a Java process.
|
* Tests passing command line arguments to a Java process.
|
||||||
*/
|
*/
|
||||||
class ProcessExecutorCommandLineTest {
|
class CommandLineTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testOneArg() {
|
fun testOneArg() {
|
@ -24,9 +24,9 @@ import dorkbox.executor.samples.ExitLikeABoss
|
|||||||
import dorkbox.executor.samples.TestSetup
|
import dorkbox.executor.samples.TestSetup
|
||||||
import kotlinx.coroutines.runBlocking
|
import kotlinx.coroutines.runBlocking
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.*
|
||||||
|
|
||||||
class ProcessExecutorExitValueTest {
|
class ExitValueTest {
|
||||||
companion object {
|
companion object {
|
||||||
private fun exitLikeABoss(exitValue: Int): List<String> {
|
private fun exitLikeABoss(exitValue: Int): List<String> {
|
||||||
return listOf("java", TestSetup.getFile(ExitLikeABoss::class.java), exitValue.toString())
|
return listOf("java", TestSetup.getFile(ExitLikeABoss::class.java), exitValue.toString())
|
@ -35,7 +35,7 @@ import java.io.ByteArrayOutputStream
|
|||||||
*
|
*
|
||||||
* @see HelloWorld
|
* @see HelloWorld
|
||||||
*/
|
*/
|
||||||
class ProcessExecutorHelloWorldTest {
|
class HelloWorldTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testReadOutputAndError() {
|
fun testReadOutputAndError() {
|
@ -23,7 +23,7 @@ import org.junit.Assert
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
|
||||||
class ProcessInitExceptionTest {
|
class InitExceptionTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testNull() {
|
fun testNull() {
|
@ -29,7 +29,7 @@ import java.io.PipedInputStream
|
|||||||
import java.io.PipedOutputStream
|
import java.io.PipedOutputStream
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class ProcessExecutorInputStreamTest {
|
class InputStreamTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testWritingToProcessAndReadingAfterProcessQuit() {
|
fun testWritingToProcessAndReadingAfterProcessQuit() {
|
@ -27,7 +27,7 @@ import org.junit.Test
|
|||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import java.io.OutputStream
|
import java.io.OutputStream
|
||||||
|
|
||||||
class ProcessExecutorLoggerTest {
|
class LoggerTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testFullName() {
|
fun testFullName() {
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
package dorkbox.executor
|
package dorkbox.executor
|
||||||
|
|
||||||
import dorkbox.executor.ProcessListenerSuccessTest.ProcessListenerImpl
|
import dorkbox.executor.SuccessTest.ProcessListenerImpl
|
||||||
import dorkbox.executor.exceptions.InvalidOutputException
|
import dorkbox.executor.exceptions.InvalidOutputException
|
||||||
import dorkbox.executor.processResults.ProcessResult
|
import dorkbox.executor.processResults.ProcessResult
|
||||||
import dorkbox.executor.processResults.SyncProcessResult
|
import dorkbox.executor.processResults.SyncProcessResult
|
||||||
|
@ -35,7 +35,7 @@ import java.io.ByteArrayOutputStream
|
|||||||
*
|
*
|
||||||
* @see HelloWorld
|
* @see HelloWorld
|
||||||
*/
|
*/
|
||||||
class ProcessExecutorStreamCloseTest {
|
class StreamCloseTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testRedirectOutputNotClosed() {
|
fun testRedirectOutputNotClosed() {
|
@ -23,7 +23,7 @@ import kotlinx.coroutines.runBlocking
|
|||||||
import org.junit.Assert
|
import org.junit.Assert
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
class ProcessListenerSuccessTest {
|
class SuccessTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testJavaVersion() {
|
fun testJavaVersion() {
|
@ -27,10 +27,9 @@ import org.hamcrest.MatcherAssert
|
|||||||
import org.junit.Assert
|
import org.junit.Assert
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.*
|
||||||
import java.util.concurrent.TimeoutException
|
|
||||||
|
|
||||||
class ProcessExecutorTimeoutTest {
|
class TimeoutTest {
|
||||||
private val writerLoopCommand: List<String> by lazy {
|
private val writerLoopCommand: List<String> by lazy {
|
||||||
listOf("java", TestSetup.getFile(Loop::class.java))
|
listOf("java", TestSetup.getFile(Loop::class.java))
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user