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