package org.quickbundle; import java.net.MalformedURLException; import java.net.URL; import javax.xml.parsers.DocumentBuilder; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentFactory; import org.dom4j.io.SAXReader; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } public static void main(String[] args) throws MalformedURLException, DocumentException { SAXReader reader = new SAXReader(); Document document = reader.read(new URL("file:///C:/Users/Administrator/.quickbundle/config_gc.xml")); System.out.println(document); } }