[jboss-dev-forums] [Design of POJO Server] - NotUnpackedRARDeploymentUnitTestCase test

alesj do-not-reply at jboss.com
Thu Nov 22 11:55:02 EST 2007


Previously NotUnpackedRARDeploymentUnitTestCase test was marked as it should completely fail:

  |    public void testNotRARDeployment() throws Exception
  |    {
  |       assertNotDeployed(notRar1DeploymentUnpacked);
  |    }
  | 

Now, not even that it doesn't fail, we even get some child deployment units attached to it:
As being recognised by JARStructure:

  | 17:19:26,484 TRACE [JARStructure] Recognised: unpacked-mcf1-not.arar
  | 17:19:26,484 TRACE [VFSStructuralDeployersImpl] unpacked-mcf1-not.arar recognised by org.jboss.deployers.vfs.plugins.structure.jar.JARStructure at e31e33
  | 
then also contains 

  | 17:19:26,484 TRACE [JARStructure] Added context ContextInfoImpl{path= metaData=META-INF classPath=null} from testdeployers-mcf1.jar
  | 17:19:26,484 TRACE [JARStructure] Added classpath entry testdeployers-mcf1.jar for testdeployers-mcf1.jar from FileHandler at 30701975[path= context=file:/C:/projects/jboss5/trunk/testsuite/output/lib/unpacked-mcf1-not.arar/ real=file:/C:/projects/jboss5/trunk/testsuite/output/lib/unpacked-mcf1-not.arar/]
  | 

Is this expected?
I guess we don't want to have child components deployed, but not the top level deployment?

I changed the calls of

  | assertNotDeployed(String deployment)
  | 
to

  | assertNoChildContexts(String deployment)
  | .
Since FileStructure 'recognises' all top level files, and as such DeploymentContext is created for underlying deployment. As such, I checked if there were no children.
Which looks like a wrong way od checking, if we allow the upper use case to be valid.

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

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



More information about the jboss-dev-forums mailing list