JUnit tests

Here are the JUnit tests achieved at the lowest level of the engine. They ensure that the basic features on which relies all the machinery are working correctly.

At this time, few JUnit tests have been written. The test suite will grow as one goes along. The current policy is to create some test cases for every new feature and enhancement introduced in RefleX and for every bug corrected : every new test must be done with JUnit or XUnit.

To run the JUnit tests from the RefleX home directory and build an HTML report, use Ant :

 $ ant junit
 $ ant junit-html

Report

Note that the summary below is not those built by Ant.

Errors reported here so far are coming from 3rd party tools :

  • Neko: NekoTest 1 error (Neko wrongly removes spaces around <head> and <body>)
  • Jaxen: NativeJaxenCompareTest 1 error (1 as integer is wrongly considered different of 1 as double)
  • Jaxen: NativeJaxenTextNodeTest 3 errors (adjacent text nodes are not merged whereas they have to)
  • VFS: BugTest 1 failure (VFS fails to mark input streams)
Test nameTestsErrorsFailure
Summary of JUnit tests for RefleX11951
1/38org.inria.ns.reflex.jtests.catalog.LookupTest100
2/38org.inria.ns.reflex.jtests.catalog.RawCatalogConversionTest100
3/38org.inria.ns.reflex.jtests.dom.DOMTest300
4/38org.inria.ns.reflex.jtests.html.NekoTest310
5/38org.inria.ns.reflex.jtests.io.RelativizeURITest100
6/38org.inria.ns.reflex.jtests.io.TokenizerTest800
7/38org.inria.ns.reflex.jtests.jaxen.NativeJaxenAttrTest100
8/38org.inria.ns.reflex.jtests.jaxen.NativeJaxenBadXPathTest100
9/38org.inria.ns.reflex.jtests.jaxen.NativeJaxenCompareTest110
10/38org.inria.ns.reflex.jtests.jaxen.NativeJaxenContainTest100
11/38org.inria.ns.reflex.jtests.jaxen.NativeJaxenCountTest100
12/38org.inria.ns.reflex.jtests.jaxen.NativeJaxenTextNodeTest330
13/38org.inria.ns.reflex.jtests.jaxen.ReflexBadXPathTest100
14/38org.inria.ns.reflex.jtests.jaxen.ReflexCompareTest100
15/38org.inria.ns.reflex.jtests.jaxen.ReflexContainTest100
16/38org.inria.ns.reflex.jtests.jaxen.ReflexCountTest100
17/38org.inria.ns.reflex.jtests.jaxen.ReflexTextNodeTest300
18/38org.inria.ns.reflex.jtests.json.JsonTest1200
19/38org.inria.ns.reflex.jtests.pattern.DOMPatternTest400
20/38org.inria.ns.reflex.jtests.pattern.SAXPatternTest100
21/38org.inria.ns.reflex.jtests.sax.SAXTest100
22/38org.inria.ns.reflex.jtests.scanner.ScannerTest800
23/38org.inria.ns.reflex.jtests.scanner.StringScannerTest800
24/38org.inria.ns.reflex.jtests.util.GroupTest400
25/38org.inria.ns.reflex.jtests.util.MapTest400
26/38org.inria.ns.reflex.jtests.vfs.BugTest101
27/38org.inria.ns.reflex.jtests.vfs.HttpSchemeTest300
28/38org.inria.ns.reflex.jtests.vfs.ResSchemeTest100
29/38org.inria.ns.reflex.jtests.web.ConversationTest100
30/38org.inria.ns.reflex.jtests.web.EmuleWGetTest100
31/38org.inria.ns.reflex.jtests.xcomponent.AttributesTest100
32/38org.inria.ns.reflex.jtests.xml.CanonicalPath2Test500
33/38org.inria.ns.reflex.jtests.xml.CanonicalPathTest500
34/38org.inria.ns.reflex.jtests.xml.QNameTest500
35/38org.inria.ns.reflex.jtests.xml.XPathTest500
36/38org.inria.ns.reflex.jtests.xpointer.ElementSchemeTest400
37/38org.inria.ns.reflex.jtests.xpointer.XPointerTest100
38/38org.inria.ns.reflex.jtests.xs.DataTypesTest1200