1 25 package org.objectweb.easybeans.tests.environment.basic; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import javax.naming.OperationNotSupportedException ; 30 31 import org.objectweb.easybeans.tests.common.ejbs.base.ItfModifyEnvironment; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.SLSBModifyEnvironment00; 33 import org.testng.annotations.BeforeMethod; 34 import org.testng.annotations.Test; 35 36 45 public class TestEnvironmentBasic00 { 46 47 50 private ItfModifyEnvironment bean; 51 52 56 @BeforeMethod 57 public void startUp() throws Exception { 58 bean = getBeanRemoteInstance(SLSBModifyEnvironment00.class, ItfModifyEnvironment.class); 59 } 60 61 68 @Test(groups = {"withWrongSpecification"}, expectedExceptions = OperationNotSupportedException .class) 69 public void testWrongSpec00() throws Exception { 70 bean.modifyEnvironment(); 71 } 72 } 73 | Popular Tags |