[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Tests don't work in eclipse

adrian@jboss.org do-not-reply at jboss.com
Tue Apr 3 07:46:07 EDT 2007


"alesj" wrote : "adrian at jboss.org" wrote : 
  |   | There are three failing tests in kernel which is NOT expected.
  |   | I suspect these are due to Ales's refactoring?
  |   | 
  | What's the error there?
  | 

This bean should not be installed, it should get a security exception.

  | junit.framework.AssertionFailedError: expected:<ControllerState at 79e328{**ERROR**}> but was:<ControllerState at 307c44{Installed}>
  | 	at junit.framework.Assert.fail(Assert.java:47)
  | 	at junit.framework.Assert.failNotEquals(Assert.java:282)
  | 	at junit.framework.Assert.assertEquals(Assert.java:64)
  | 	at junit.framework.Assert.assertEquals(Assert.java:71)
  | 	at org.jboss.test.kernel.controller.test.AccessControlTestCase.testAccessControlContext(AccessControlTestCase.java:57)
  | 

Looks like classloading dependency is broken?

  | java.lang.IllegalStateException: Bean not found cl at state ControllerState at 307c44{Installed}
  | 	at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.getControllerContext(MicrocontainerTestDelegate.java:152)
  | 	at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.getBean(MicrocontainerTestDelegate.java:125)
  | 	at org.jboss.test.kernel.junit.MicrocontainerTest.getBean(MicrocontainerTest.java:93)
  | 	at org.jboss.test.kernel.junit.MicrocontainerTest.getBean(MicrocontainerTest.java:80)
  | 	at org.jboss.test.kernel.deployment.test.BeanMetaDataWithClassloaderTestCase.testBeanAsValueMetaData(BeanMetaDataWithClassloaderTestCase.java:48)
  | 

Some other problem with classloaders?

  | java.lang.IllegalStateException: Incompletely deployed:
  | 
  | *** DEPLOYMENTS IN ERROR: Name -> Error
  | FactoryBeanConfiguredClassLoader -> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[org.jboss.kernel.spi.config.KernelConfigurator] actual=[org.jboss.kernel.plugins.config.AbstractKernelConfigurator]
  | FactoryDeploymentConfiguredClassLoader -> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[org.jboss.kernel.spi.config.KernelConfigurator] actual=[org.jboss.kernel.plugins.config.AbstractKernelConfigurator]
  | 
  | 	at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:249)
  | 	at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:163)
  | 	at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.validate(MicrocontainerTestDelegate.java:180)
  | 	at org.jboss.test.kernel.junit.MicrocontainerTest.validate(MicrocontainerTest.java:191)
  | 	at org.jboss.test.kernel.deployment.test.DeploymentClassLoaderTestCase.testDeploymentClassLoader(DeploymentClassLoaderTestCase.java:51)
  | 

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

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



More information about the jboss-dev-forums mailing list