You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/12/19 15:50:37 UTC

cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/xml dummy.xml suite.jelly

jstrachan    2002/12/19 06:50:37

  Modified:    jelly/src/test/org/apache/commons/jelly/xml suite.jelly
  Added:       jelly/src/test/org/apache/commons/jelly/xml dummy.xml
  Log:
  Added another unit test to ensure that the uri method of XML parsing works
  
  Revision  Changes    Path
  1.7       +6 -0      jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/xml/suite.jelly
  
  Index: suite.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/xml/suite.jelly,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- suite.jelly	13 Dec 2002 18:08:31 -0000	1.6
  +++ suite.jelly	19 Dec 2002 14:50:37 -0000	1.7
  @@ -5,6 +5,12 @@
   	xmlns:test="jelly:junit" 
   	xmlns:log="jelly:log">
   
  +	<test:case name="testUriParse">
  +		<x:parse var="doc" xml="dummy.xml"/>
  +		
  +		<test:assert xpath="$doc/dummy/entry[@id='2']"/>		
  +	</test:case>
  +	
     <test:case name="testElementAndAttribute">
     	
     	<x:parse var="doc">
  
  
  
  1.1                  jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/xml/dummy.xml
  
  Index: dummy.xml
  ===================================================================
  <?xml version="1.0"?>
  <dummy>
    <entry id="1">This is some sample XML</entry>
    <entry id="2">And some more XML</entry>
    <empty/>
  </dummy>  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>