public class TestTarget extends Object
TestWriter
.Modifier and Type | Class and Description |
---|---|
static class |
TestTarget.BaseBuilder<T extends TestTarget.BaseBuilder<T>>
Base class for
TestTarget builders. |
static class |
TestTarget.Builder
Builds a
TestTarget instance. |
Constructor and Description |
---|
TestTarget()
Creates a new TestTarget instance.
|
Modifier and Type | Method and Description |
---|---|
static TestTarget.Builder |
basic()
Returns a new
TestTarget.Builder . |
File |
getDir()
Returns the output directory for this target.
|
File |
getFile()
Returns the output file for this target.
|
String |
getName()
Returns the test name for this target.
|
OutputStream |
getOutput()
Returns the output stream designated for this target.
|
static List<String> |
getPathElements(File file)
Returns the elements of the given file path.
|
File |
getResourceDir()
Returns the resource output directory for this target.
|
Long |
getTimeout()
Returns the test timeout (milliseconds) for this target.
|
void |
setDir(File dir)
Changes the output directory for this target.
|
void |
setFile(File file)
Changes the output file for this target.
|
void |
setFile(String file)
Changes the output file for this target.
|
void |
setName(String name)
Changes the test name for this target.
|
void |
setOutput(OutputStream output)
Changes the output stream designated for this target.
|
void |
setResourceDir(File dir)
Changes the resource output directory for this target.
|
void |
setTimeout(Long millis)
Changes the test timeout (milliseconds) for this target.
|
String |
toString() |
public void setOutput(OutputStream output)
public OutputStream getOutput()
public void setName(String name)
public String getName()
public void setFile(File file)
public void setFile(String file)
public File getFile()
public void setDir(File dir)
public File getDir()
public void setResourceDir(File dir)
public File getResourceDir()
public void setTimeout(Long millis)
public Long getTimeout()
public static List<String> getPathElements(File file)
public static TestTarget.Builder basic()
TestTarget.Builder
.Copyright © 2024 The Cornutum Project. All rights reserved.