[Design of JBossXB] - Re: Mixing wildcards and elements
by alex.loubyansky@jboss.com
Once again, which test are you running?
I just refreshed my microcontainer. The XmlLoadableAopTestCase passed. And the XmlLoadableTest has one error
"java.lang.IllegalStateException: Bean not found Bean at state ControllerState@87a5cc{Installed}" and
junit.framework.AssertionFailedError: expected:<1> but was:<0>
| at junit.framework.Assert.fail(Assert.java:47)
| at junit.framework.Assert.failNotEquals(Assert.java:277)
| at junit.framework.Assert.assertEquals(Assert.java:64)
| at junit.framework.Assert.assertEquals(Assert.java:195)
| at junit.framework.Assert.assertEquals(Assert.java:201)
| at org.jboss.test.microcontainer.beans.test.XmlLoadableTest.testClassMetaDataLoader(XmlLoadableTest.java:56)
But I don't see the XB error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147760#4147760
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147760
16 years, 8 months
[Design of JBossXB] - Re: Mixing wildcards and elements
by kabir.khan@jboss.com
I do not see this when running from within Eclipse. All I see in the console is:
| 0 DEBUG [XmlLoadableTest] ==== setUp org.jboss.test.microcontainer.beans.test.XmlLoadableTest ====
| 453 DEBUG [KernelFactory] Starting JBoss Kernel construction...
| 2766 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 2313 milliseconds
| 3312 DEBUG [XmlLoadableTest] No test specific deployment org/jboss/test/microcontainer/beans/test/XmlLoadableTest-aop.xml
| 3312 DEBUG [XmlLoadableTest] Deploying file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/target/tests-classes/org/jboss/tes
| t/microcontainer/beans/test/XmlLoadableTest.xml
| 3672 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@d3db51, isNamespaceAware: true, isValidating: true, isXIn
| cludeAware: true
| 3672 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
| 3672 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
| 3672 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
| 3703 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@d3db51, isNamespaceAware: true, isValidating: true, isXIn
| cludeAware: true
| 11719 DEBUG [XmlLoadableTest] ==== tornDown org.jboss.test.microcontainer.beans.test.XmlLoadableTest ====
| 11797 DEBUG [XmlLoadableTest] ==== Starting testAspectInterceptorAndDynamicCFlow ====
| 11812 DEBUG [XmlLoadableTest] testAspectInterceptorAndDynamicCFlow took 15ms
| 11812 DEBUG [XmlLoadableTest] ==== Stopping testAspectInterceptorAndDynamicCFlow ====
|
And for the test
| java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl
| at org.jboss.beans.metadata.spi.factory.GenericBeanFactoryMetaData.getBeans(GenericBeanFactoryMetaData.java:609)
| at org.jboss.aop.microcontainer.beans.metadata.AspectBeanMetaDataFactory.getBeans(AspectBeanMetaDataFactory.java:134)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployment.getBeans(AbstractKernelDeployment.java:229)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:304)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
| at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
| at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:88)
| at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:158)
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.deploy(MicrocontainerTestDelegate.java:294)
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.deploy(MicrocontainerTestDelegate.java:438)
| at org.jboss.test.aop.junit.AOPMicrocontainerTestDelegate.deploy(AOPMicrocontainerTestDelegate.java:74)
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.setUp(MicrocontainerTestDelegate.java:83)
| at org.jboss.test.aop.junit.AOPMicrocontainerTestDelegate.setUp(AOPMicrocontainerTestDelegate.java:58)
| at org.jboss.test.AbstractTestSetup.setUp(AbstractTestSetup.java:63)
| at org.jboss.test.AbstractTestCaseWithSetup.setUp(AbstractTestCaseWithSetup.java:103)
| at org.jboss.test.kernel.junit.MicrocontainerTest.setUp(MicrocontainerTest.java:82)
| at junit.framework.TestCase.runBare(TestCase.java:132)
| at junit.framework.TestResult$1.protect(TestResult.java:110)
| at junit.framework.TestResult.runProtected(TestResult.java:128)
| at junit.framework.TestResult.run(TestResult.java:113)
| at junit.framework.TestCase.run(TestCase.java:124)
| at junit.framework.TestSuite.runTest(TestSuite.java:232)
| at junit.framework.TestSuite.run(TestSuite.java:227)
| at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147750#4147750
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147750
16 years, 8 months