KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > om > util > XMLComparatorTest


1 package org.apache.axis2.om.util;
2
3 import org.apache.axis2.om.OMTestCase;
4 import org.apache.axis2.om.impl.llom.util.XMLComparator;
5 import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
6
7 /**
8  * Copyright 2001-2004 The Apache Software Foundation.
9  * <p/>
10  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
11  * use this file except in compliance with the License. You may obtain a copy of
12  * the License at
13  * <p/>
14  * http://www.apache.org/licenses/LICENSE-2.0
15  * <p/>
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19  * License for the specific language governing permissions and limitations under
20  * the License.
21  * <p/>
22  */

23 public class XMLComparatorTest extends OMTestCase{
24     /**
25      * Eran Chinthaka (chinthaka@apache.org)
26      */

27     public XMLComparatorTest(String JavaDoc testName) {
28         super(testName);
29     }
30
31     protected void setUp() throws Exception JavaDoc {
32         super.setUp();
33     }
34
35     public void testCompare() throws Exception JavaDoc {
36         StAXSOAPModelBuilder omBuilder = getOMBuilder("");
37         XMLComparator xmlComparator = new XMLComparator();
38         assertTrue(xmlComparator.compare(omBuilder.getDocumentElement(), omBuilder.getDocumentElement()));
39
40
41     }
42 }
43
Popular Tags