axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: xml-axis/java/test/utils TestXMLUtils.java
Date Mon, 18 Nov 2002 23:36:57 GMT
stevel      2002/11/18 15:36:57

  Modified:    java/test/utils TestXMLUtils.java
  Log:
  turn on a test that only gets called in online mode
  
  Revision  Changes    Path
  1.16      +9 -7      xml-axis/java/test/utils/TestXMLUtils.java
  
  Index: TestXMLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/utils/TestXMLUtils.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- TestXMLUtils.java	30 Oct 2002 22:56:19 -0000	1.15
  +++ TestXMLUtils.java	18 Nov 2002 23:36:57 -0000	1.16
  @@ -7,6 +7,7 @@
   import org.apache.axis.message.SOAPHandler;
   import org.apache.axis.encoding.DeserializationContextImpl;
   import org.apache.axis.encoding.DeserializationContext;
  +import org.apache.axis.test.AxisTestBase;
   import org.w3c.dom.Document;
   import org.w3c.dom.Element;
   import org.w3c.dom.NodeList;
  @@ -24,7 +25,7 @@
   import java.io.Reader;
   import java.io.StringReader;
   
  -public class TestXMLUtils extends TestCase
  +public class TestXMLUtils extends AxisTestBase
   {
   
       public TestXMLUtils (String name) {
  @@ -64,14 +65,15 @@
       * it unless you really want to test it.  When not connected to the Web you
       * will get an UnknownHostException.
       */
  -    /*
  -    public void testNewDocumentURI()
  +
  +    public void testNewDocumentURI() throws Exception
       {
  -        String uri = "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";
  -        Document doc = XMLUtils.newDocument(uri);
  -        assertNotNull("Did not get a new Document", doc);
  +        if(isOnline()) {
  +            String uri = "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";
  +            Document doc = XMLUtils.newDocument(uri);
  +            assertNotNull("Did not get a new Document", doc);
  +        }
       }
  -    */
   
       public void testDocumentToString() throws Exception
       {
  
  
  

Mime
View raw message