[Design the new POJO MicroContainer] - Re: aop-mc-int tests failing on annotation parsing
by alesj
| testComplicatedLifecycleDependencyCorrectOrder(org.jboss.test.kernel.dependency.test.ComplicatedLifecycleDependencyAnnotationTestCase) Time elapsed: 0.048 sec <<< FAILURE!
| testComplicatedLifecycleDependencyWrongOrder(org.jboss.test.kernel.dependency.test.ComplicatedLifecycleDependencyAnnotationTestCase) Time elapsed: 0.03 sec <<< FAILURE!
| testComplicatedLifecycleDependencyReinstall(org.jboss.test.kernel.dependency.test.ComplicatedLifecycleDependencyAnnotationTestCase) Time elapsed: 0.057 sec <<< FAILURE!
|
Similar problem.
The proxy doesn't reflect delegate's field changes.
| bean5: org.jboss.test.kernel.dependency.support.SimpleBeanWithComplicatedLifecycle = {org.jboss.test.kernel.dependency.support.AOPContainerProxy$0@1792}"org.jboss.test.kernel.dependency.support.AnnotatedSimpleBeanWithComplicatedLifecycle@1b044df (proxied by org.jboss.test.kernel.dependency.support.AOPContainerProxy$0@9b777a)"
| mixins: java.lang.Object[] = null
| delegate: org.jboss.test.kernel.dependency.support.AnnotatedSimpleBeanWithComplicatedLifecycle = {org.jboss.test.kernel.dependency.support.AnnotatedSimpleBeanWithComplicatedLifecycle@1032}
| createOrder: int = 9
| startOrder: int = 10
| stopOrder: int = -1
| destroyOrder: int = -1
| createBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = {org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle@1487}
| startBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = {org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle@1789}
| stopBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = null
| destroyBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = null
| currentAdvisor: org.jboss.aop.Advisor = {org.jboss.aop.proxy.container.InstanceProxyContainer@1802}
| classAdvisor: org.jboss.aop.Advisor = {org.jboss.aop.proxy.container.ClassProxyContainer@1803}
| metadata: org.jboss.aop.metadata.SimpleMetaData = null
| instanceAdvisor: org.jboss.aop.InstanceAdvisor = {org.jboss.aop.proxy.container.InstanceProxyContainer@1802}
| createOrder: int = -1
| startOrder: int = -1
| stopOrder: int = -1
| destroyOrder: int = -1
| createBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = null
| startBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = null
| stopBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = null
| destroyBean: org.jboss.test.kernel.dependency.support.SimpleBeanWithLifecycle = null
|
e.g. see delegate.createOrder vs. bean5.createOrder.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133894#4133894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133894
16 years, 2 months
[Design the new POJO MicroContainer] - Re: aop-mc-int tests failing on annotation parsing
by alesj
| 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
16 years, 2 months
[Design the new POJO MicroContainer] - Re: aop-mc-int tests failing on annotation parsing
by adrian@jboss.org
| [ejort@warjort jboss-mdr]$ grep -ri FAILURE ~/microcontainer/aop-mc-int/target/surefire-reports/no-weave/org.jboss.test.microcontainer.test.MicrocontainerAllTestCase.txt
| Tests run: 1138, Failures: 14, Errors: 0, Skipped: 0, Time elapsed: 36.476 sec <<< FAILURE!
| 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 elapsed: 0.223 sec <<< FAILURE!
| testCustomMapPreInstantiated(org.jboss.test.kernel.config.test.MapAnnotationTestCase) Time elapsed: 0.241 sec <<< FAILURE!
| testComplicatedLifecycleDependencyCorrectOrder(org.jboss.test.kernel.dependency.test.ComplicatedLifecycleDependencyAnnotationTestCase) Time elapsed: 0.048 sec <<< FAILURE!
| testComplicatedLifecycleDependencyWrongOrder(org.jboss.test.kernel.dependency.test.ComplicatedLifecycleDependencyAnnotationTestCase) Time elapsed: 0.03 sec <<< FAILURE!
| testComplicatedLifecycleDependencyReinstall(org.jboss.test.kernel.dependency.test.ComplicatedLifecycleDependencyAnnotationTestCase) Time elapsed: 0.057 sec <<< FAILURE!
| testKernelControllerContextAware(org.jboss.test.kernel.dependency.test.KernelControllerContextAwareAnnotationTestCase) Time elapsed: 0.044 sec <<< FAILURE!
| testClassAnnotationNoOverride(org.jboss.test.kernel.metadata.test.ClassAnnotationTestCase) Time elapsed: 0.049 sec <<< FAILURE!
| testClassAnnotationOverride(org.jboss.test.kernel.metadata.test.ClassAnnotationTestCase) Time elapsed: 0.038 sec <<< FAILURE!
| testClassAnnotationNew(org.jboss.test.kernel.metadata.test.ClassAnnotationTestCase) Time elapsed: 0.04 sec <<< FAILURE!
| testPropertyAnnotationNoOverride(org.jboss.test.kernel.metadata.test.ClassAnnotationTestCase) Time elapsed: 0.022 sec <<< FAILURE!
| testPropertyAnnotationOverride(org.jboss.test.kernel.metadata.test.ClassAnnotationTestCase) Time elapsed: 0.02 sec <<< FAILURE!
| testPropertyAnnotationNew(org.jboss.test.kernel.metadata.test.ClassAnnotationTestCase) Time elapsed: 0.042 sec <<< FAILURE!
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133880#4133880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133880
16 years, 2 months