1 22 package org.jboss.test.kernel.deployment.jboss.test; 23 24 import javax.naming.InitialContext ; 25 26 import org.jboss.test.JBossTestCase; 27 28 34 public class DependsPOJOEARUnitTestCase extends JBossTestCase 35 { 36 public DependsPOJOEARUnitTestCase(String test) 37 { 38 super(test); 39 } 40 41 public void testDependsPOJO() throws Exception 42 { 43 try 44 { 45 deploy("testkernel-dependspojo.ear"); 46 InitialContext ctx = new InitialContext (); 47 Object obj = ctx.lookup("test/kernel/deployment/pojodepends"); 48 assertNotNull(obj); 49 } 50 catch (Exception e) 51 { 52 getLog().info(e); 53 throw e; 54 } 55 finally 56 { 57 undeploy("testkernel-dependspojo.ear"); 58 } 59 } 60 } 61 | Popular Tags |