1 25 package org.objectweb.easybeans.tests.examples; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 import static org.testng.Assert.assertEquals; 29 30 import org.objectweb.easybeans.tests.common.ejbs.base.ItfExample; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.SLSBExample; 32 import org.testng.annotations.BeforeMethod; 33 import org.testng.annotations.Test; 34 35 47 public class TestExample { 48 49 52 private static final Integer INPUT = new Integer (1); 53 54 57 private ItfExample<Integer > bean; 58 59 63 @SuppressWarnings ("unchecked") 64 @BeforeMethod 65 public void setup() throws Exception { 66 bean = getBeanRemoteInstance(SLSBExample.class, ItfExample.class); 68 } 69 70 79 @Test 80 public void test00() throws Exception { 81 Integer output = bean.getValue(INPUT); 83 84 assertEquals(INPUT, output, "The input and output values should be equal."); 86 } 87 } 88 | Popular Tags |