1 16 package org.apache.axis2.om; 17 18 import org.apache.axis2.soap.SOAPEnvelope; 19 20 public class MessagesTest extends OMTestCase { 21 SOAPEnvelope soapEnvelope; 22 23 public MessagesTest(String testName) { 24 super(testName); 25 } 26 27 public void testMessageWithLotOfWhiteSpaces() throws OMException, Exception { 28 soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/whitespacedMessage.xml")).getDocumentElement(); 29 OMTestUtils.walkThrough(soapEnvelope); 30 } 31 32 public void testMinimalMessage() throws OMException, Exception { 33 soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml")).getDocumentElement(); 34 OMTestUtils.walkThrough(soapEnvelope); 35 } 36 37 public void testReallyBigMessage() throws OMException, Exception { 38 soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/reallyReallyBigMessage.xml")).getDocumentElement(); 39 OMTestUtils.walkThrough(soapEnvelope); 40 } 41 42 public void testEmptyBodiedMessage() throws OMException, Exception { 43 soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/emtyBodymessage.xml")).getDocumentElement(); 44 OMTestUtils.walkThrough(soapEnvelope); 45 } 46 47 48 } 49 | Popular Tags |