1 22 package org.jboss.ejb3.test.regression.ejbthree620.unit; 23 24 import javax.naming.Context ; 25 26 import junit.framework.Test; 27 28 import org.jboss.ejb3.test.regression.ejbthree620.Calculator; 29 import org.jboss.test.JBossTestCase; 30 31 37 public class EJBBeanInterfaceTestCase extends JBossTestCase 38 { 39 public EJBBeanInterfaceTestCase(String name) 40 { 41 super(name); 42 } 43 44 public void testAddition() throws Exception { 45 Context ctx = getInitialContext(); 46 Calculator calculator = (Calculator) ctx.lookup("CalculatorBean/remote"); 47 assertEquals(3, calculator.add(1, 2)); 48 } 49 50 public static Test suite() throws Exception 51 { 52 return getDeploySetup(EJBBeanInterfaceTestCase.class, "ejbthree620.jar"); 53 } 54 } 55 | Popular Tags |