public class SystemTestDocWriter extends AbstractSystemTestWriter
SystemTestDef
in the form of an XML document.Constructor and Description |
---|
SystemTestDocWriter()
Creates a new SystemTestDocWriter object that writes to standard output.
|
SystemTestDocWriter(OutputStream stream)
Creates a new SystemTestDocWriter object that writes to the given stream.
|
SystemTestDocWriter(Writer writer)
Creates a new SystemTestDocWriter object that writes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
flush()
Flushes the writer.
|
protected void |
setWriter(Writer writer)
Changes the output stream for this writer.
|
void |
write(SystemTestDef systemTest)
Writes the given system test definition the form of an XML document.
|
protected void |
writeAnnotations(Annotated annotated)
Writes the given annotation definitions.
|
protected void |
writeBinding(VarBinding binding)
Writes the given variable input value definition.
|
protected void |
writeFunction(FunctionTestDef function)
Writes the given function test definition.
|
protected void |
writeInputs(TestCase testCase,
String type)
Writes the input value definitions for all variables of the given type.
|
protected void |
writeTestCase(TestCase testCase)
Writes the given test case definition.
|
getWriter
public SystemTestDocWriter()
public SystemTestDocWriter(OutputStream stream)
public SystemTestDocWriter(Writer writer)
public void write(SystemTestDef systemTest)
write
in class AbstractSystemTestWriter
protected void writeFunction(FunctionTestDef function)
protected void writeTestCase(TestCase testCase)
protected void writeInputs(TestCase testCase, String type)
protected void writeBinding(VarBinding binding)
protected void writeAnnotations(Annotated annotated)
public void flush()
flush
in class AbstractSystemTestWriter
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractSystemTestWriter
protected void setWriter(Writer writer)
setWriter
in class AbstractSystemTestWriter
Copyright © 2024 The Cornutum Project. All rights reserved.