Пример #1
0
 @Test
 public void testAuthenticationAnonymousDisallowedWithPost() throws Exception {
   setAuthenticationHandlerConfig(getAuthenticationHandlerConfiguration(false));
   _testAuthentication(new PseudoAuthenticator(), true);
 }
Пример #2
0
 @Test
 public void testAuthenticationAnonymousAllowed() throws Exception {
   setAuthenticationHandlerConfig(getAuthenticationHandlerConfiguration(true));
   _testAuthentication(new PseudoAuthenticator(), false);
 }