public class EdifactDirTestHarness extends Object implements org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactory
| Constructor and Description |
|---|
EdifactDirTestHarness(File edifactSpecFile,
String... messages) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertJavaReadWriteOK(InputStream edifactStream)
Test that the supplied EDIDFACT input stream can be read and bound into
a
UNEdifactInterchange instance and then serialized back to
EDIFACT, without altering the EDIFACT message. |
void |
assertJavaReadWriteOK(Reader edifactStream)
Test that the supplied EDIDFACT input stream can be read and bound into
a
UNEdifactInterchange instance and then serialized back to
EDIFACT, without altering the EDIFACT message. |
void |
assertXMLOK(InputStream edifactIn,
InputStream expectedXMLOut) |
void |
assertXMLOK(InputStream edifactIn,
InputStream expectedXMLOut,
boolean validate) |
org.milyn.smooks.edi.unedifact.model.UNEdifactInterchange |
fromUNEdifact(InputSource ediSource,
Result... additionalResults) |
org.milyn.smooks.edi.unedifact.model.UNEdifactInterchange |
fromUNEdifact(InputStream ediStream,
Result... additionalResults) |
org.milyn.archive.Archive |
getBindingModel() |
org.milyn.archive.ArchiveClassLoader |
getBindingModelClassLoader() |
org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactory |
getFactory() |
org.milyn.archive.Archive |
getMappingModel() |
org.milyn.archive.ArchiveClassLoader |
getMappingModelClassLoader() |
String |
getUrn() |
void |
setReportPath(String reportPath) |
void |
smooksFilterSource(String smooksConfig,
Source source,
Result... results) |
void |
toUNEdifact(org.milyn.smooks.edi.unedifact.model.UNEdifactInterchange interchange,
Writer writer) |
public String getUrn()
public org.milyn.archive.Archive getMappingModel()
public org.milyn.archive.Archive getBindingModel()
public org.milyn.archive.ArchiveClassLoader getMappingModelClassLoader()
public org.milyn.archive.ArchiveClassLoader getBindingModelClassLoader()
public org.milyn.smooks.edi.unedifact.model.UNEdifactInterchange fromUNEdifact(InputStream ediStream, Result... additionalResults) throws IOException
fromUNEdifact in interface org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactoryIOExceptionpublic org.milyn.smooks.edi.unedifact.model.UNEdifactInterchange fromUNEdifact(InputSource ediSource, Result... additionalResults) throws IOException
fromUNEdifact in interface org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactoryIOExceptionpublic void toUNEdifact(org.milyn.smooks.edi.unedifact.model.UNEdifactInterchange interchange,
Writer writer)
throws IOException
toUNEdifact in interface org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactoryIOExceptionpublic void setReportPath(String reportPath)
setReportPath in interface org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactorypublic org.milyn.smooks.edi.unedifact.model.UNEdifactInterchangeFactory getFactory()
public void assertJavaReadWriteOK(InputStream edifactStream) throws IOException
UNEdifactInterchange instance and then serialized back to
EDIFACT, without altering the EDIFACT message.edifactStream - The EDIFACT input stream.IOException - Error reading/writing.public void assertJavaReadWriteOK(Reader edifactStream) throws IOException
UNEdifactInterchange instance and then serialized back to
EDIFACT, without altering the EDIFACT message.edifactStream - The EDIFACT input stream.IOException - Error reading/writing.public void assertXMLOK(InputStream edifactIn, InputStream expectedXMLOut) throws IOException, SAXException
IOExceptionSAXExceptionpublic void assertXMLOK(InputStream edifactIn, InputStream expectedXMLOut, boolean validate) throws IOException, SAXException
IOExceptionSAXExceptionCopyright © 2015. All rights reserved.