FileDocCategorySizeDatePackage
ClassloaderUnitTestCase.javaAPI DocJBoss 4.2.12536Fri Jul 13 20:53:10 BST 2007org.jboss.ejb3.test.classloader.unit

ClassloaderUnitTestCase

public class ClassloaderUnitTestCase extends org.jboss.test.JBossTestCase
author
William DeCoste
version
$Revision: 60233 $

Fields Summary
Constructors Summary
public ClassloaderUnitTestCase(String name)

      super(name);
   
Methods Summary
public static junit.framework.Testsuite()
Setup the test suite.

      return getDeploySetup(ClassloaderUnitTestCase.class, "classloader.jar, classloader-shared.jar, classloader-unshared.jar");
   
public voidtestEJBOverride()

      InitialContext jndiContext = new InitialContext();
      Session30 stateless = (Session30)jndiContext.lookup("Session30");
      assertNull(stateless.checkVersion());
   
public voidtestSharedRepository()

      InitialContext jndiContext = new InitialContext();
      Session30 stateless = (Session30)jndiContext.lookup("Shared");
      assertNull(stateless.checkVersion());
   
public voidtestUnharedRepository()

      InitialContext jndiContext = new InitialContext();
      Session30 stateless = (Session30)jndiContext.lookup("Unshared");
      Throwable t = stateless.checkVersion();
      assertNotNull(t);
      assertTrue(t instanceof java.lang.NoSuchMethodException);