You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2007/07/27 14:02:18 UTC
[jira] Updated: (BEANUTILS-36) test.wrap.dynabean fails because
testSetIndexedValues runs before testGetIndexedValues
[ https://issues.apache.org/jira/browse/BEANUTILS-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton updated BEANUTILS-36:
-------------------------------------
Fix Version/s: 1.8.0
Summary: test.wrap.dynabean fails because testSetIndexedValues runs before testGetIndexedValues (was: [beanutils] test.wrap.dynabean fails because testSetIndexedValues runs before testGetIndexedValues)
> test.wrap.dynabean fails because testSetIndexedValues runs before testGetIndexedValues
> --------------------------------------------------------------------------------------
>
> Key: BEANUTILS-36
> URL: https://issues.apache.org/jira/browse/BEANUTILS-36
> Project: Commons BeanUtils
> Issue Type: Bug
> Affects Versions: 1.6
> Environment: Operating System: All
> Platform: All
> Reporter: ms419
> Fix For: 1.8.0
>
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org