1 25 package org.objectweb.easybeans.tests.security; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.security.ItfSecurityInheritanceTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.security.SLSBSecurityInheritanceTester01; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 44 public class TestSecurityInheritance01 { 45 46 49 private ItfSecurityInheritanceTester tester; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 tester = EJBHelper.getBeanRemoteInstance(SLSBSecurityInheritanceTester01.class, 58 ItfSecurityInheritanceTester.class); 59 } 60 61 67 @Test 68 public void callMethodDenyAll() { 69 tester.callMethodDenyAll(); 70 } 71 72 78 @Test 79 public void callMethodMainRole() { 80 tester.callMethodMainRole(); 81 } 82 83 88 @Test 89 public void callMethodPermitAll() { 90 tester.callMethodPermitAll(); 91 } 92 } 93 | Popular Tags |