[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: aop-mc-int tests failing on annotation parsing

alesj do-not-reply at jboss.com
Tue Mar 4 08:17:28 EST 2008


  | testCustomCollectionPreInstantiated(org.jboss.test.kernel.config.test.CollectionAnnotationTestCase) 
  |  Time elapsed: 0.353 sec  <<< FAILURE!
  | testCustomSetPreInstantiated(org.jboss.test.kernel.config.test.SetAnnotationTestCase)  Time elapsed:
  |  0.27 sec  <<< FAILURE!
  | testCustomListPreInstantiated(org.jboss.test.kernel.config.test.ListAnnotationTestCase)  Time elapse
  | d: 0.223 sec  <<< FAILURE!
  | testCustomMapPreInstantiated(org.jboss.test.kernel.config.test.MapAnnotationTestCase)  Time elapsed:
  |  0.241 sec  <<< FAILURE!
  | 

The problem with those is Kabir's problem. :-)

The test fails since there is null collection on the collection where there is only setter (no getter).
The actual non-null/non-empty collection argument gets pushed into ReflectionUtils.invoke(method, target, args), where the target is AOPContainerProxy. And the actual underlying delegate, FromPreinst(some_collection)SimpleBean, gets called. But the result of this setter invocation doesn't show in the proxy itself.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133891#4133891

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133891



More information about the jboss-dev-forums mailing list