KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > om > MessagesTest


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

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 JavaDoc testName) {
24         super(testName);
25     }
26
27     public void testMessageWithLotOfWhiteSpaces() throws OMException, Exception JavaDoc {
28         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/whitespacedMessage.xml")).getDocumentElement();
29         OMTestUtils.walkThrough(soapEnvelope);
30     }
31
32     public void testMinimalMessage() throws OMException, Exception JavaDoc {
33         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml")).getDocumentElement();
34         OMTestUtils.walkThrough(soapEnvelope);
35     }
36
37     public void testReallyBigMessage() throws OMException, Exception JavaDoc {
38         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/reallyReallyBigMessage.xml")).getDocumentElement();
39         OMTestUtils.walkThrough(soapEnvelope);
40     }
41
42     public void testEmptyBodiedMessage() throws OMException, Exception JavaDoc {
43         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/emtyBodymessage.xml")).getDocumentElement();
44         OMTestUtils.walkThrough(soapEnvelope);
45     }
46
47
48 }
49
Popular Tags