public class TestSetWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSV_R_FORMAT
Indicates CSV-R format as default CSV format
|
static java.lang.String |
CSV_RC_FORMAT
Indicates CSV-RC format
|
| Constructor and Description |
|---|
TestSetWrapper(SUT sut)
Creates a new
TestSetWrapper instance with a given SUT. |
TestSetWrapper(TestSet ts,
SUT sut)
Creates a new
TestSetWrapper instance with a given test set
and an SUT. |
| Modifier and Type | Method and Description |
|---|---|
void |
outputInCSVFormat()
Prints this test set to terminal in the CSV format.
|
void |
outputInCSVFormat(java.lang.String fn)
Outputs this test set to a file in the CSV format.
|
void |
outputInExcelFormat(java.lang.String fn)
Outputs a test set in the Excel format into a file.
|
void |
outputInNistFormat()
Prints this test set to terminal in the NIST format.
|
void |
outputInNistFormat(java.lang.String fn)
Outputs this test set to a file in the NIST format.
|
void |
outputInNistFormat(java.lang.String fn,
java.lang.String doiStr)
Outputs this test set to a file in the NIST format for GUI.
|
void |
outputInNumericFormat()
Prints this test set to terminal in the numeric format.
|
void |
outputInNumericFormat(java.io.PrintWriter writer)
Outputs a test set in the numeric format into a file.
|
void |
outputInNumericFormat(java.lang.String fn)
Outputs this test set to a file in the numeric format.
|
TestSet |
readTestSet(java.lang.String path,
java.lang.String importType)
Reads a test set from a file.
|
public static final java.lang.String CSV_RC_FORMAT
public static final java.lang.String CSV_R_FORMAT
public TestSetWrapper(SUT sut)
TestSetWrapper instance with a given SUT. This
constructor is used to import a test set. The SUT object is used to
validate the parameters and values in the test set. In particular, the
parameters in the test set to be imported must match the parameters in the
SUT.sut - a TestSet valuepublic void outputInCSVFormat()
public void outputInCSVFormat(java.lang.String fn)
fn - the file namepublic void outputInExcelFormat(java.lang.String fn)
fn - the name of the file into which the test set is written.public void outputInNistFormat()
public void outputInNistFormat(java.lang.String fn)
fn - the file namepublic void outputInNistFormat(java.lang.String fn,
java.lang.String doiStr)
fn - the file namepublic void outputInNumericFormat()
public void outputInNumericFormat(java.lang.String fn)
fn - the file namepublic void outputInNumericFormat(java.io.PrintWriter writer)
writer - the file into which the test set is written.public TestSet readTestSet(java.lang.String path, java.lang.String importType) throws OperationServiceException
path - the full path of the file to be readimportType - the format of the test setOperationServiceException