#3 JUnit tests fail.

open
nobody
None
5
2004-01-07
2004-01-07
Anonymous
No

I downloaded the sdbm package and ran "ant test"
Here's the result:
junit:
[echo]
[echo] Test results in /export/home/eric/tmp/sdbm-1.0/test/results
[echo]
[junit] Running org.solinger.sdbm.PageTest
[junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.173 sec

The results for PageTest were:

more TEST-org.solinger.sdbm.PageTest.txt*
Testsuite: org.solinger.sdbm.PageTest
Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.173 sec

Testcase: testNoRoom took 0.147 sec
Testcase: testSize took 0.006 sec
Caused an ERROR
junit.framework.Assert.assert(Z)V
at org.solinger.sdbm.PageTest.testSize(PageTest.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

It seems testSize makes a new Page, and asserts is isEmpty().

I am running Solaris 2.8 (Sparc), Java 1.4.1_01, junit 3.8.1, ant 1.6.0

Regards,
eric@dreamcodesoftware.com

Discussion


Log in to post a comment.