[fedora-java] junit4 behavior change

Orion Poplawski orion at cora.nwra.com
Mon Jun 28 16:52:04 UTC 2010


Running apache-poi tests on Fedora 13 with junit4 4.6 I get:

     [junit] Running org.apache.poi.hssf.usermodel.TestBugs
     [junit] Warning, header block comes after data blocks in POIFS block listing
     [junit] Warning, incorrectly terminated empty data blocks in POIFS block 
listing (should end
at -2, ended at 0)
     [junit] Tests run: 91, Failures: 0, Errors: 0, Time elapsed: 5.654 sec

On rawhide with junit4 4.8.2 I get:

     [junit] Running org.apache.poi.hssf.usermodel.TestBugs
     [junit] Warning, header block comes after data blocks in POIFS block listing
     [junit] Warning, incorrectly terminated empty data blocks in POIFS block 
listing (should end at -2, ended at 0)
     [junit] Tests run: 91, Failures: 0, Errors: 1, Time elapsed: 13.797 sec
BUILD FAILED
/builddir/build/BUILD/poi-3.6/build.xml:563: Tests failed

These warnings are written with System.err.println().  Does junit4 now 
automatically record an error if something is written to stderr?

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the java-devel mailing list