Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 76764 invoked from network); 5 Apr 2006 16:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 16:36:38 -0000 Received: (qmail 93283 invoked by uid 500); 5 Apr 2006 16:36:34 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 93219 invoked by uid 500); 5 Apr 2006 16:36:33 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 93208 invoked by uid 500); 5 Apr 2006 16:36:33 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 93199 invoked by uid 99); 5 Apr 2006 16:36:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 09:36:33 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Apr 2006 09:36:33 -0700 Received: (qmail 76539 invoked by uid 65534); 5 Apr 2006 16:36:12 -0000 Message-ID: <20060405163612.76534.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r391666 - /webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java Date: Wed, 05 Apr 2006 16:36:07 -0000 To: axis2-cvs@ws.apache.org From: chinthaka@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: chinthaka Date: Wed Apr 5 09:35:59 2006 New Revision: 391666 URL: http://svn.apache.org/viewcvs?rev=391666&view=rev Log: This test was used to create a SOAPEnvelope with two Header elements. But with the latest changes to Axiom, we get an exception at the moment we try to create a SOAPEnvelope with two Header elements. So this test case is not valid anymore. Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java?rev=391666&r1=391665&r2=391666&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java (original) +++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java Wed Apr 5 09:35:59 2006 @@ -22,8 +22,6 @@ import org.apache.axiom.soap.SOAP11Constants; import org.apache.axiom.soap.SOAP12Constants; import org.apache.axiom.soap.SOAPEnvelope; -import org.apache.axiom.soap.SOAPFactory; -import org.apache.axiom.soap.SOAPFault; import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder; import org.apache.axis2.AxisFault; import org.apache.axis2.Constants; @@ -105,24 +103,7 @@ return OMAbstractFactory.getOMFactory().createOMElement(elementLocalName, null); } - public void testTwoHeadersSOAPMessage() throws AxisFault, XMLStreamException { - SOAPFactory fac = OMAbstractFactory.getSOAP12Factory(); - SOAPEnvelope soapEnvelope = getTwoHeadersSOAPEnvelope(fac); - SOAPEnvelope resposeEnvelope = getResponse(soapEnvelope); - - checkSOAPFaultContent(resposeEnvelope); - SOAPFault fault = resposeEnvelope.getBody().getFault(); - assertEquals(fault.getCode().getValue().getText().trim(), SOAP12Constants.FAULT_CODE_SENDER); - - fac = OMAbstractFactory.getSOAP11Factory(); - soapEnvelope = getTwoHeadersSOAPEnvelope(fac); - resposeEnvelope = getResponse(soapEnvelope); - - checkSOAPFaultContent(resposeEnvelope); - fault = resposeEnvelope.getBody().getFault(); - assertEquals(fault.getCode().getValue().getText().trim(), SOAP11Constants.FAULT_CODE_SENDER); - } public void testRefParamsWithFaultTo() throws AxisFault, XMLStreamException { SOAPEnvelope soapEnvelope = getSOAPEnvelopeWithRefParamsInFaultTo(); @@ -157,16 +138,6 @@ return (SOAPEnvelope) new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream(soap.getBytes())), SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI).getDocumentElement(); } - - private void checkSOAPFaultContent(SOAPEnvelope soapEnvelope) { - assertTrue(soapEnvelope.getBody().hasFault()); - SOAPFault fault = soapEnvelope.getBody().getFault(); - assertNotNull(fault.getCode()); - assertNotNull(fault.getCode().getValue()); - assertNotNull(fault.getReason()); - assertNotNull(fault.getReason().getText()); - } - private SOAPEnvelope getResponse(SOAPEnvelope inEnvelope) throws AxisFault { ConfigurationContext confctx = ConfigurationContextFactory. createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null); @@ -183,14 +154,6 @@ opClient.addMessageContext(msgctx); opClient.execute(true); return opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope(); - } - - private SOAPEnvelope getTwoHeadersSOAPEnvelope(SOAPFactory fac) { - SOAPEnvelope soapEnvelope = fac.createSOAPEnvelope(); - fac.createSOAPHeader(soapEnvelope); - fac.createSOAPHeader(soapEnvelope); - fac.createSOAPBody(soapEnvelope); - return soapEnvelope; } public File getTestResourceFile(String relativePath) {