1 25 package org.objectweb.easybeans.tests.security; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.security.ItfSecurityPermissionTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.security.SFSBSecurityPermissionTester01; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 43 public class TestSLAnnotationPermissions { 44 45 48 private ItfSecurityPermissionTester tester; 49 50 54 @BeforeMethod 55 public void setup() throws Exception { 56 tester = EJBHelper.getBeanRemoteInstance(SFSBSecurityPermissionTester01.class, ItfSecurityPermissionTester.class); 57 } 58 59 64 @Test 65 public void testPermitAll(){ 66 tester.testPermitAll(); 67 } 68 69 74 @Test 75 public void testDenyAll(){ 76 tester.testDenyAll(); 77 } 78 79 85 @Test 86 public void testAllowedRolesWithTwoRoles(){ 87 tester.testAllowedRolesWithTwoRoles(); 88 } 89 90 97 @Test 98 public void testAllowedRolesWithOneRole(){ 99 tester.testAllowedRolesWithOneRole(); 100 } 101 } 102 | Popular Tags |