At work I am using POI to generate xls reports.

It is time for me to change the reports, and I want to use the test
first method.
In particular my users have asked me to change the labels on the Header . What I would like to do is generate a small test file called static1.xsl
Edit the file by hand and then this test code expecting it to fail

File expected = new File ("static1.xsl");
myclass.myMethod();
File result = new File ("theGeneratedFile.xsl");

assertHSSFValuesEquals("Static 1 spreadsheet",expected,result);

JUnit should then say
Failure: Static 1 spreadsheet: row 1 col1 expected value "New Label" but was value "Old Label".


Does this method or a simular one exist?

If not I will make one and contribute it back?

R,
Nick






--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to