diff options
author | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-09-08 20:43:56 +0000 |
---|---|---|
committer | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-09-08 20:43:56 +0000 |
commit | 5575ba3e47ff0c656c0a89ca2db04a54f39c1714 (patch) | |
tree | 44a1eb4d713bba058ee2d17e88105e02ed44a2e9 /sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany | |
parent | 89f0d319b59f642ac17c73e6982baaca902244e4 (diff) |
Commit commented out test for TUSCANY-3943.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1166896 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany')
-rw-r--r-- | sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java b/sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java index ea02d8c3d6..c2d6f40416 100644 --- a/sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java +++ b/sca-java-2.x/trunk/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java @@ -31,6 +31,7 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface; import org.apache.tuscany.sca.interfacedef.wsdl.WSDLOperation; import org.apache.tuscany.sca.interfacedef.wsdl.xml.AbstractWSDLTestCase; import org.junit.Assert; +import org.junit.Ignore; import org.junit.Test; /** @@ -65,10 +66,27 @@ public class WrapperStyleOperationTestCase extends AbstractWSDLTestCase { definition = resolver.resolveModel(WSDLDefinition.class, definition, context); PortType portType = definition.getDefinition().getPortType(PORTTYPE_NAME); WSDLInterface wi = wsdlFactory.createWSDLInterface(portType, definition, resolver, context.getMonitor()); - WSDLOperation op = (WSDLOperation) wi.getOperations().get(1); + WSDLOperation op = (WSDLOperation) wi.getOperations().get(0); + Assert.assertTrue(op.isWrapperStyle()); + op = (WSDLOperation) wi.getOperations().get(1); Assert.assertFalse(op.isWrapperStyle()); op = (WSDLOperation) wi.getOperations().get(2); Assert.assertFalse(op.isWrapperStyle()); } + + @Test + @Ignore("TUSCANY-3943") + public final void testDisabledWrappedOperation() throws Exception { + ProcessorContext context = new ProcessorContext(); + URL url = getClass().getResource("../xml/disabledwrapped-stockquote.wsdl"); + WSDLDefinition definition = (WSDLDefinition)documentProcessor.read(null, new URI("disabledwrapped-stockquote.wsdl"), url, context); + resolver.addModel(definition, context); + definition = resolver.resolveModel(WSDLDefinition.class, definition, context); + PortType portType = definition.getDefinition().getPortType(PORTTYPE_NAME); + WSDLInterface wi = wsdlFactory.createWSDLInterface(portType, definition, resolver, context.getMonitor()); + WSDLOperation op = (WSDLOperation) wi.getOperations().get(0); + Assert.assertFalse(op.isWrapperStyle()); + } + } |