cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-1876) Sometimes PropertyUtilsTest failed
Date Mon, 14 Oct 2013 16:16:49 GMT

     [ https://issues.apache.org/jira/browse/CAY-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1876.
--------------------------------

    Resolution: Fixed

Thanks Ilya, good catch - a test with side effect (one of my big reasons for disliking static
singletons). I applied the patch to trunk. All should be good now.

> Sometimes PropertyUtilsTest failed
> ----------------------------------
>
>                 Key: CAY-1876
>                 URL: https://issues.apache.org/jira/browse/CAY-1876
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.2M2
>         Environment: MS Windows 7, java 1.7.0_21
>            Reporter: Ilya Drabenia
>            Priority: Minor
>         Attachments: CAY-1876_Sometimes_PropertyUtilsTest_failed.patch
>
>
> Sometimes PropertyUtilsTest failed. Something like 1 per 10 runs.
> {code}
> org.apache.cayenne.CayenneRuntimeException: [v.3.2M2-SNAPSHOT Oct 09 2013 09:32:17] Error
setting property segment 'dateField' in path 'dateField' to value '0' for object 'org.apache.cayenne.reflect.TestJavaBean@32bd8b9c'
> 	at org.apache.cayenne.reflect.PropertyUtils.setProperty(PropertyUtils.java:169)
> 	at org.apache.cayenne.reflect.PropertyUtilsTest.testSetConverted(PropertyUtilsTest.java:196)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
> 	at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52)
> 	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
> Caused by: org.apache.cayenne.CayenneRuntimeException: [v.3.2M2-SNAPSHOT Oct 09 2013
09:32:17] Unable to convert '0' to a Date
> 	at org.apache.cayenne.reflect.PropertyUtilsTest$1.convert(PropertyUtilsTest.java:224)
> 	at org.apache.cayenne.reflect.PropertyUtilsTest$1.convert(PropertyUtilsTest.java:209)
> 	at org.apache.cayenne.reflect.PropertyUtils.setSimpleProperty(PropertyUtils.java:234)
> 	at org.apache.cayenne.reflect.PropertyUtils.setProperty(PropertyUtils.java:166)
> 	... 24 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message