KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xmlpull > v1 > tests > TestXmlSimple


1 /* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 // for license see accompanying LICENSE_TESTS.txt file (available also at http://www.xmlpull.org)
3

4 package org.xmlpull.v1.tests;
5
6 import java.io.*;
7
8 import junit.framework.TestCase;
9 import junit.framework.TestSuite;
10
11 import org.xmlpull.v1.*;
12
13 public class TestXmlSimple extends XmlTestCase {
14
15     public static void main (String JavaDoc[] args) {
16         junit.textui.TestRunner.run (new TestSuite(TestXmlSimple.class));
17     }
18
19     public TestXmlSimple(String JavaDoc name) {
20         super(name);
21     }
22
23     public void testSimple()
24         throws IOException, XmlPullParserException
25     {
26         testXml("simple.xml");
27     }
28
29     public void testSimple2()
30         throws IOException, XmlPullParserException
31     {
32         testXml("simple2.xml");
33     }
34 }
35
36
Popular Tags