1 25 package org.objectweb.easybeans.tests.security; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.security.ItfSecurityRolesTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.security.SFSBSecurityRolesTester00; 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 TestSFAnnotationSecurityRoles { 45 46 49 private ItfSecurityRolesTester tester; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 tester = EJBHelper.getBeanRemoteInstance(SFSBSecurityRolesTester00.class, ItfSecurityRolesTester.class); 58 } 59 60 66 @Test 67 public void testPermitAll() { 68 tester.testPermitAll(); 69 } 70 71 78 @Test 79 public void testDenyAll() { 80 tester.testDenyAll(); 81 } 82 83 88 @Test 89 public void testAllowedRolesWithOneRole() { 90 tester.testAllowedRolesWithOneRole(); 91 } 92 93 98 @Test 99 public void testAllowedRolesWithTwoRoles() { 100 tester.testAllowedRolesWithTwoRoles(); 101 } 102 103 109 @Test 110 public void testGetCallerIdentity() { 111 tester.testGetCallerIdentity(); 112 } 113 114 122 @Test 123 public void testGetCallerPrincipalDifferentCaller() { 124 tester.testGetCallerPrincipalDifferentCaller(); 125 } 126 127 134 @Test 135 public void testGetCallerPrincipalSameCaller() { 136 tester.testGetCallerPrincipalSameCaller(); 137 } 138 139 146 @Test 147 public void testIsCallerInRoleCorrect() { 148 tester.testIsCallerInRoleCorrect(); 149 } 150 151 158 @Test 159 public void testIsCallerInRoleDeprecated() { 160 tester.testIsCallerInRoleDeprecated(); 161 } 162 163 170 @Test 171 public void testIsCallerInRoleIncorrect() { 172 tester.testIsCallerInRoleIncorrect(); 173 } 174 } 175 | Popular Tags |