This content has been marked as final.
Show 4 replies
-
1. Re: Problem with Collection<Enum>
aloubyansky Oct 18, 2007 9:45 AM (in response to starksm64)It's a bug. It should apply the adapter to each item in the collection.
But there are cases when it should be applied to a collection. E.g. org.jboss.test.xb.builder.object.element.javatypeadapter.test.JavaTypeAdapterUnitTestCase.
I am looking into this issue. -
2. Re: Problem with Collection<Enum>
aloubyansky Oct 18, 2007 10:45 AM (in response to starksm64)It should be fixed now in xb trunk.
-
3. Re: Problem with Collection of Enum
starksm64 Nov 3, 2007 12:02 PM (in response to starksm64)Turns out this is not complete yet. The array passed in is an array of string, not the DispatcherType enum. I updated the WebApp5EverythingUnitTestCase so that its failing because of this:
junit.framework.AssertionFailedError: expected:<FORWARD> but was:<FORWARD> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:71) at org.jboss.test.metadata.web.WebApp5EverythingUnitTestCase.assertFilterMappings(WebApp5EverythingUnitTestCase.java:195) at org.jboss.test.metadata.web.WebApp5EverythingUnitTestCase.assertEverything(WebApp5EverythingUnitTestCase.java:92) at org.jboss.test.metadata.web.WebApp5EverythingUnitTestCase.testEverything(WebApp5EverythingUnitTestCase.java:75)
-
4. Re: Problem with Collection<Enum>
aloubyansky Nov 3, 2007 3:44 PM (in response to starksm64)There was a typo. It's fixed now.