maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-turbine-maven/src/test/java/org/apache/maven JAXPTest.java
Date Sun, 01 Dec 2002 12:34:36 GMT
dion        2002/12/01 04:34:36

  Modified:    src/test/java/org/apache/maven JAXPTest.java
  Log:
  Add document builder to the list
  
  Revision  Changes    Path
  1.2       +4 -1      jakarta-turbine-maven/src/test/java/org/apache/maven/JAXPTest.java
  
  Index: JAXPTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/test/java/org/apache/maven/JAXPTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JAXPTest.java	30 Nov 2002 00:49:28 -0000	1.1
  +++ JAXPTest.java	1 Dec 2002 12:34:36 -0000	1.2
  @@ -54,6 +54,7 @@
    * <http://www.apache.org/>.
    */
   
  +import javax.xml.parsers.DocumentBuilder;
   import javax.xml.parsers.DocumentBuilderFactory;
   import javax.xml.parsers.SAXParser;
   import javax.xml.parsers.SAXParserFactory;
  @@ -114,6 +115,8 @@
   	{
   		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
   		factory.setNamespaceAware(true);
  -        System.out.println("Document Builder is: " + factory.newDocumentBuilder().getClass().getName());
  +		DocumentBuilder builder = factory.newDocumentBuilder();
  +		assertTrue("Wrong document builder", 
  +			builder.getClass().getName().startsWith("org.apache.xerces.jaxp."));
   	}
   }
  
  
  

Mime
View raw message