You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/05/09 22:26:48 UTC
DO NOT REPLY [Bug 34824] New: -
test.wrap.dynabean fails because testSetIndexedValues runs before testGetIndexedValues
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34824
Summary: test.wrap.dynabean fails because testSetIndexedValues
runs before testGetIndexedValues
Product: Commons
Version: 1.6 Final
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Bean Utilities
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: ms419@freezone.co.uk
The commons beanutils test.wrap.dynabean build target gives me this error -
test.wrap.dynabean:
[echo] Running WrapDynaBean tests ...
[java] ........................F...........
[java] Time: 0.39
[java] There was 1 failure:
[java] 1)
testGetIndexedValues(org.apache.commons.beanutils.WrapDynaBeanTestCase)junit.framework.AssertionFailedError:
listIndexed 2 threw junit.framework.ComparisonFailure: listIndexed returned
correct 2 expected:<String...> but was:<New Value...>
[java] at
org.apache.commons.beanutils.BasicDynaBeanTestCase.testGetIndexedValues
(BasicDynaBeanTestCase.java:407)
[java] at java.lang.reflect.Method.invoke0 (Method.java)
[java] at java.lang.reflect.Method.invoke (Method.java:255)
[java] FAILURES!!!
[java] Tests run: 35, Failures: 1, Errors: 0
I guess the problem is junit runs test cases in bottom to top order, so
org.apache.commons.beanutils.BasicDynaBeanTestCase.testSetIndexedValues
(BasicDynaBeanTestCase.java:782) runs before
org.apache.commons.beanutils.BasicDynaBeanTestCase.testGetIndexedValues
(BasicDynaBeanTestCase.java:371) - & bean.get("listIndexed", 2) is "New Value 2"
instead of "String 2"
Does junit allow stipulation of test cases' order? Or stipulation that
testSetIndexedValues depends on testGetIndexedValues running first?
I used jikes 1.22 & kaffe 1.1.5
Many thanks for your work on this valuable software!
Jack
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org