Methods Summary |
---|
protected final com.sun.xml.ws.policy.sourcemodel.PolicyModelMarshaller | getPolicyModelMarshaller()
return marshaller;
|
protected final javax.xml.stream.XMLStreamWriter | openFilteredWriter(java.io.Writer outputStream, com.sun.xml.ws.policy.jaxws.xmlstreamwriter.InvocationProcessorFactory factory)
XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream);
return EnhancedXmlStreamWriterProxy.createProxy(writer, factory);
|
protected final javax.xml.stream.XMLStreamWriter | openFilteredWriter(java.io.Writer outputStream, com.sun.xml.ws.api.server.SDDocumentFilter filter)
return filter.filter(null, XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream));
|
protected final void | performResourceBasedTest(java.lang.String[] resourceNames, java.lang.String resourcePrefix, java.lang.String resourceSuffix, com.sun.xml.ws.policy.jaxws.xmlstreamwriter.InvocationProcessorFactory factory)
for (String testResourceName : resourceNames) {
PolicySourceModel model = PolicyResourceLoader.unmarshallModel(resourcePrefix + testResourceName + resourceSuffix);
PolicySourceModel expected = PolicyResourceLoader.unmarshallModel(resourcePrefix + testResourceName + "_expected" + resourceSuffix);
StringWriter buffer = new StringWriter();
XMLStreamWriter writer = openFilteredWriter(buffer, factory);
marshaller.marshal(model, writer);
writer.close();
String marshalledData = buffer.toString();
PolicySourceModel result = PolicyResourceLoader.unmarshallModel(new StringReader(marshalledData));
assertEquals("Result is not as expected for '" + testResourceName + "' test resource.", expected, result);
}
|
protected final void | performResourceBasedTest(java.lang.String[] resourceNames, java.lang.String resourcePrefix, java.lang.String resourceSuffix, com.sun.xml.ws.api.server.SDDocumentFilter filter)
for (String testResourceName : resourceNames) {
PolicySourceModel model = PolicyResourceLoader.unmarshallModel(resourcePrefix + testResourceName + resourceSuffix);
PolicySourceModel expected = PolicyResourceLoader.unmarshallModel(resourcePrefix + testResourceName + "_expected" + resourceSuffix);
StringWriter buffer = new StringWriter();
XMLStreamWriter writer = openFilteredWriter(buffer, filter);
marshaller.marshal(model, writer);
writer.close();
String marshalledData = buffer.toString();
PolicySourceModel result = PolicyResourceLoader.unmarshallModel(new StringReader(marshalledData));
assertEquals("Result is not as expected for '" + testResourceName + "' test resource.", expected, result);
}
|
public void | testDummy()
// dummy test method to avoid JUnit warnings
|