[ 
https://issues.apache.org/jira/browse/TOMEE-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618040#comment-13618040
 ] 

Mark Struberg commented on TOMEE-878:
-------------------------------------

I suspect this comes from the JNDI-roulette pattern which happens pretty often 
when working with (considered broken) JNDI. I guess this is due to storing the 
resources in Set or Map internally and returning the first from the iterator in 
ambiguous situations. 

I'd be happy if you prove me wrong, otherwise we can just add a proper 
"oRangedAtasourCE" to remove the ambiguity.
                
> AutoConfigResourceRefsTest is broken
> ------------------------------------
>
>                 Key: TOMEE-878
>                 URL: https://issues.apache.org/jira/browse/TOMEE-878
>             Project: TomEE
>          Issue Type: Bug
>         Environment: OSX 10.7 
> Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
> Apache Maven 3.0.5
> sources: latest from trunk r1462724.
>            Reporter: Mark Struberg
>
> The following tests fail reproducibly
> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.008 sec <<< 
> FAILURE!
> test(org.apache.openejb.config.AutoConfigResourceRefsTest)  Time elapsed: 
> 0.861 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<[default]DataSource> but 
> was:<[Purple]DataSource>
>         at junit.framework.Assert.assertEquals(Assert.java:100)
>         at junit.framework.Assert.assertEquals(Assert.java:107)
>         at junit.framework.TestCase.assertEquals(TestCase.java:269)
>         at 
> org.apache.openejb.config.AutoConfigResourceRefsTest.test(AutoConfigResourceRefsTest.java:75)
> testCaseInsensitive(org.apache.openejb.config.AutoConfigResourceRefsTest)  
> Time elapsed: 0.07 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<[DeFAult]DataSource> but 
> was:<[PurpLE]DataSource>
>         at junit.framework.Assert.assertEquals(Assert.java:100)
>         at junit.framework.Assert.assertEquals(Assert.java:107)
>         at junit.framework.TestCase.assertEquals(TestCase.java:269)
>         at 
> org.apache.openejb.config.AutoConfigResourceRefsTest.testCaseInsensitive(AutoConfigResourceRefsTest.java:117)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to