[jboss-dev-forums] [JBoss Microcontainer Development POJO Server] - Re: kernel unit test failures

alesj do-not-reply at jboss.com
Fri Sep 18 10:25:36 EDT 2009


It's this 
KernelScopeInfo::         updateConstructorAnnotations(repository, (ComponentMutableMetaData) mutable, kernelContext, add);
that is the culprit.

I've added this code to escape illegal checks against external factory:

  |       // TODO - Kabir check if this is OK?
  |       // we don't handle external factories
  |       if (constructorMetaData.getFactory() != null || constructorMetaData.getFactoryClass() != null)
  |          return;
  | 

Although now I get this failures:

  |   testInjectMcBeanIntoField(org.jboss.test.kernel.webbeans.mctowb.test.InjectMcBeansInWebBeansTestCase)
  |   testInjectMcBeanIntoConstructor(org.jboss.test.kernel.webbeans.mctowb.test.InjectMcBeansInWebBeansTestCase)
  |   testInjectMcMethodProducedBeanIntoField(org.jboss.test.kernel.webbeans.mctowb.test.InjectMcBeansInWebBeansTestCase)
  |   testSimple(org.jboss.test.kernel.webbeans.beanwrapper.test.BeanImplementationTestCase)
  |   testDecoratedType(org.jboss.test.kernel.webbeans.beanwrapper.test.BeanImplementationTestCase)
Which I need to check if they are related.

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

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



More information about the jboss-dev-forums mailing list