Sunday, March 11, 2007

 

On top of the wave with Junit 4, SureFire 2.3 and DOM lvl 3

Getting into Junit testing now. The first test is written for the Display element. Since there will be a lot of changes to the source tree I branched in Subversion. I'm using Junit 4.0 which is now supported in the Surefire maven plugin (Only since March 1) together with DOM lvl 3 (Since Java 5.0).

The test goes as follows:

1. Create a DOM document from a string fragment defined in the test. (The fragment is what I expect)
2. Validate this against the Renderman XML Schema
3. Create the Display element with standard Renderman RIB syntax
4. Add this to a JAXB Renderman list
5. Marshall this JAXB list to a second DOM document
6. Use the DOM lvl 3 functionality ( isEqualNode() )to compare the Nodes of the two different documents
7. Run tests with maven

So that's three fairly to brand new technologies to do test driven development.

Makes me happy :-)


Olivier

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?