KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > soap > SOAPFaultSubCodeTestCase


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
17 package org.apache.axis2.soap;
18
19 public class SOAPFaultSubCodeTestCase extends SOAPFaultCodeTestCase {
20     protected SOAPFaultValue soap11FaultValue;
21     protected SOAPFaultValue soap12FaultValueInFaultCode;
22     protected SOAPFaultSubCode soap12FaultSubCodeInCode;
23
24     protected SOAPFaultValue soap12FaultValueInFaultSubCode;
25     protected SOAPFaultSubCode soap12FaultSubCodeInSubCode;
26
27     protected SOAPFaultValue soap11FaultValueWithParser;
28     protected SOAPFaultValue soap12FaultValueInFaultCodeWithParser;
29     protected SOAPFaultSubCode soap12FaultSubCodeInFaultCodeWithParser;
30
31     protected SOAPFaultValue soap12FaultValueInFaultSubCodeWithParser;
32     protected SOAPFaultSubCode soap12FaultSubCodeInSubCodeWithParser;
33
34     public SOAPFaultSubCodeTestCase(String JavaDoc testName) {
35         super(testName);
36     }
37
38     protected void setUp() throws Exception JavaDoc {
39         super.setUp();
40         soap11FaultValue = soap11Factory.createSOAPFaultValue(soap11FaultCode);
41
42         soap12FaultValueInFaultCode = soap12Factory.createSOAPFaultValue(soap12FaultCode);
43         soap12FaultSubCodeInCode = soap12Factory.createSOAPFaultSubCode(soap12FaultCode);
44
45
46         soap12FaultSubCodeInSubCode = soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode);
47
48         soap11FaultValueWithParser = soap11FaultCodeWithParser.getValue();
49         soap12FaultValueInFaultCodeWithParser = soap12FaultCodeWithParser.getValue();
50         soap12FaultSubCodeInFaultCodeWithParser = soap12FaultCodeWithParser.getSubCode();
51
52         soap12FaultValueInFaultSubCodeWithParser = soap12FaultSubCodeInFaultCodeWithParser.getValue();
53         soap12FaultSubCodeInSubCodeWithParser = soap12FaultSubCodeInFaultCodeWithParser.getSubCode();
54     }
55 }
56
Popular Tags