cleaned up test class names

This commit is contained in:
Robinson 2021-01-03 20:25:26 +01:00
parent 563f2e062b
commit 374e0bf29f
15 changed files with 18 additions and 19 deletions

View File

@ -32,7 +32,7 @@ import org.junit.Test
*
* @see ArgumentsAsList
*/
class ProcessExecutorArgsWithExtraSpaceTest {
class ArgsWithExtraSpaceTest {
@Test
@Throws(Exception::class)
fun testReadOutputAndError() {

View File

@ -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)

View File

@ -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)
}

View File

@ -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))
}

View File

@ -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() {

View File

@ -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())

View File

@ -35,7 +35,7 @@ import java.io.ByteArrayOutputStream
*
* @see HelloWorld
*/
class ProcessExecutorHelloWorldTest {
class HelloWorldTest {
@Test
@Throws(Exception::class)
fun testReadOutputAndError() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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

View File

@ -35,7 +35,7 @@ import java.io.ByteArrayOutputStream
*
* @see HelloWorld
*/
class ProcessExecutorStreamCloseTest {
class StreamCloseTest {
@Test
@Throws(Exception::class)
fun testRedirectOutputNotClosed() {

View File

@ -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() {

View File

@ -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))
}