1 25 package org.objectweb.easybeans.tests.common.ejbs.base.inheritance; 26 27 import static org.objectweb.easybeans.tests.common.asserts.Assert.assertEquals; 28 29 import java.util.ArrayList ; 30 import java.util.List ; 31 32 import org.objectweb.easybeans.tests.common.ejbs.base.ItfLocalInheritanceTester00; 33 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.inheritance.SLSBInheritance00; 34 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.inheritance.SLSBInheritance01; 35 import org.objectweb.easybeans.tests.common.inheritance.ItfAddElement; 36 import org.testng.annotations.Test; 37 38 43 public class EBaseLocalInheritanceTester00 implements ItfLocalInheritanceTester00 { 44 45 49 public void startUp() throws Exception { 50 } 51 52 55 private ItfAddElement mtBean00; 56 57 60 private ItfAddElement mtBean01; 61 62 69 @SuppressWarnings ("unchecked") 70 @Test(groups = {"withInheritance"}) 71 public void test00() { 72 List <Integer > arResult = new ArrayList <Integer >(); 74 List <Integer > arExpected = new ArrayList <Integer >(); 75 76 arExpected.add(SLSBInheritance00.ELEMENT); 80 81 arResult = mtBean00.addElement(arResult); 83 84 assertEquals(arExpected, arResult, "The business method is not running correctly."); 86 } 87 88 95 @SuppressWarnings ("unchecked") 96 @Test(groups = {"withInheritance"}) 97 public void test01() { 98 List <Integer > arResult = new ArrayList <Integer >(); 100 List <Integer > arExpected = new ArrayList <Integer >(); 101 102 arExpected.add(SLSBInheritance01.ELEMENT); 106 107 arResult = mtBean01.addElement(arResult); 109 110 assertEquals(arExpected, arResult, "The business method is not running correctly."); 112 } 113 114 115 120 public void setBeans(final ItfAddElement bean00, final ItfAddElement bean01) { 121 this.mtBean00 = bean00; 122 this.mtBean01 = bean01; 123 } 124 } 125 | Popular Tags |