[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Annotation Tests in deployers-vfs
adrian@jboss.org
do-not-reply at jboss.com
Mon Jun 9 10:44:19 EDT 2008
"alesj" wrote : "adrian at jboss.org" wrote : The annotation tests in deployers-vfs are failing for me under eclipse.
| Do you still get failing tests under eclipse?
Yep. One of them is fixed but the other still fails:
| junit.framework.AssertionFailedError: Expected [appc.jar, ejbs.jar, web.jar, services.jar] got [] expected:<4> 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 org.jboss.test.deployers.vfs.structure.AbstractStructureTest.assertChildContexts(AbstractStructureTest.java:79)
| at org.jboss.test.deployers.vfs.structure.ear.test.EARStructureUnitTestCase.testEARAnnotationScanning(EARStructureUnitTestCase.java:143)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at junit.framework.TestCase.runTest(TestCase.java:168)
| at junit.framework.TestCase.runBare(TestCase.java:134)
| 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 junit.framework.TestSuite.runTest(TestSuite.java:232)
| at junit.framework.TestSuite.run(TestSuite.java:227)
| at junit.framework.TestSuite.runTest(TestSuite.java:232)
| at junit.framework.TestSuite.run(TestSuite.java:227)
| at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
| 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)
|
|
I don't see it adding any of the subdeployments when I enable TRACE logging
| 0 DEBUG [EARStructureUnitTestCase] ==== Starting testEARAnnotationScanning ====
| 36 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.file.FileSystemContextFactory at 192b996 for protocol: file
| 36 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.file.FileSystemContextFactory at 192b996 for protocol: vfsfile
| 38 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.jar.JarContextFactory at 8f4fb3 for protocol: jar
| 38 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.jar.JarContextFactory at 8f4fb3 for protocol: vfsjar
| 40 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.memory.MemoryContextFactory at ba6c83 for protocol: vfsmemory
| 43 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.zip.ZipEntryContextFactory at 29428e for protocol: zip
| 43 TRACE [VFSContextFactoryLocator] Registered org.jboss.virtual.plugins.context.zip.ZipEntryContextFactory at 29428e for protocol: vfszip
| 179 DEBUG [VFSStructuralDeployersImpl] Added structure deployer org.jboss.deployers.vfs.plugins.structure.file.FileStructure at 47393f
| 179 DEBUG [VFSStructuralDeployersImpl] Added structure deployer org.jboss.deployers.vfs.plugins.structure.war.WARStructure at 1ff7a1e
| 179 DEBUG [VFSStructuralDeployersImpl] Added structure deployer org.jboss.deployers.vfs.plugins.structure.jar.JARStructure at 1aa57fb
| 179 DEBUG [VFSStructuralDeployersImpl] Added structure deployer org.jboss.test.deployers.vfs.structure.ear.support.MockEarStructureDeployer@
| 763f5d
| 186 TRACE [VFSStructuralDeployersImpl] Determining structure for scanning.ear deployers=[org.jboss.deployers.vfs.plugins.structure.war.WARSt
| ructure at 1ff7a1e, org.jboss.test.deployers.vfs.structure.ear.support.MockEarStructureDeployer at 763f5d, org.jboss.deployers.vfs.plugins.structu
| re.jar.JARStructure at 1aa57fb, org.jboss.deployers.vfs.plugins.structure.file.FileStructure at 47393f]
| 197 TRACE [WARStructure] ... no - doesn't look like a war and no WEB-INF subdirectory.
| 198 TRACE [WARStructure] Not recognised: scanning.ear
| 202 TRACE [MockEarStructureDeployer] Added context ContextInfoImpl{path= metaData=[META-INF] classPath=null} from scanning.ear
| 227 TRACE [VFSUtils] Can't find manifest for scanning.ear
| 330 TRACE [MockEarStructureDeployer] Recognised: scanning.ear
| 330 TRACE [VFSStructuralDeployersImpl] scanning.ear recognised by org.jboss.test.deployers.vfs.structure.ear.support.MockEarStructureDeploye
| r at 763f5d
| 330 TRACE [VFSStructureBuilder] Populating deployment vfsfile:/home/ejort/jboss-deployers/deployers-vfs/target/tests-classes/structure/ear/s
| canning.ear/ metaData=StructureMetaDataImpl{contexts=[ContextInfoImpl{path= metaData=[META-INF] classPath=null}]}
| 351 TRACE [VFSStructureBuilder] Apply context: vfsfile:/home/ejort/jboss-deployers/deployers-vfs/target/tests-classes/structure/ear/scanning
| .ear/ ContextInfoImpl{path= metaData=[META-INF] classPath=null}
| 354 TRACE [VFSUtils] Can't find manifest for scanning.ear
| 354 TRACE [VFSStructureBuilder] Populating Context vfsfile:/home/ejort/jboss-deployers/deployers-vfs/target/tests-classes/structure/ear/scan
| ning.ear/ metaData=StructureMetaDataImpl{contexts=[ContextInfoImpl{path= metaData=[META-INF] classPath=null}]}
| 355 DEBUG [EARStructureUnitTestCase] testEARAnnotationScanning took 355ms
| 355 DEBUG [EARStructureUnitTestCase] ==== Stopping testEARAnnotationScanning ====
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156724#4156724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156724
More information about the jboss-dev-forums
mailing list