From: Jean-Marc V. <jm...@us...> - 2004-07-09 16:44:55
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7437/src/org/exist/xmldb/test Modified Files: ResourceSetTest.java ResourceTest.java AllTests.java Log Message: add more tests in AllTests Index: ResourceSetTest.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/test/ResourceSetTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ResourceSetTest.java 2 Apr 2003 13:11:36 -0000 1.1 --- ResourceSetTest.java 9 Jul 2004 16:44:41 -0000 1.2 *************** *** 45,52 **** // Currently (2003-04-02) fires an exception in FunPosition: ! XPathPrefix = "document('/db/test/hamlet.xml')/*/*"; query1 = XPathPrefix + "[position()>=5 ]"; query2 = XPathPrefix + "[position()<=10]"; ! expected = 6; // This validates OK: // XPathPrefix = "document('/db/test/hamlet.xml')//LINE"; --- 45,52 ---- // Currently (2003-04-02) fires an exception in FunPosition: ! XPathPrefix = "document('/db/test/shakes.xsl')/*/*"; // "document('/db/test/macbeth.xml')/*/*"; query1 = XPathPrefix + "[position()>=5 ]"; query2 = XPathPrefix + "[position()<=10]"; ! expected = 87; // This validates OK: // XPathPrefix = "document('/db/test/hamlet.xml')//LINE"; Index: AllTests.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/test/AllTests.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AllTests.java 2 Oct 2003 12:20:20 -0000 1.3 --- AllTests.java 9 Jul 2004 16:44:41 -0000 1.4 *************** *** 11,14 **** --- 11,16 ---- suite.addTest(new TestSuite(CreateCollectionsTest.class)); suite.addTest(new TestSuite(ResourceTest.class)); + suite.addTest(new TestSuite(ResourceSetTest.class)); + suite.addTest(new TestSuite(TestEXistXMLSerialize.class)); //$JUnit-END$ return suite; Index: ResourceTest.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/test/ResourceTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ResourceTest.java 29 Jan 2004 15:06:49 -0000 1.7 --- ResourceTest.java 9 Jul 2004 16:44:41 -0000 1.8 *************** *** 59,62 **** --- 59,63 ---- System.out.println("----------------------------------------"); } catch (Exception e) { + System.out.println("testReadResource(): Exception: " + e); fail(e.getMessage()); } |