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 * @see ArgumentsAsList
*/ */
class ProcessExecutorArgsWithExtraSpaceTest { class ArgsWithExtraSpaceTest {
@Test @Test
@Throws(Exception::class) @Throws(Exception::class)
fun testReadOutputAndError() { fun testReadOutputAndError() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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