}
- @Ignore
+ @Test
public void testInvalidAuthenticationRequest()
throws Exception
{
- //RssFeedServlet servlet =
- // (RssFeedServlet) client.newInvocation( "http://localhost/feeds/unauthorized-repo" ).getServlet();
-
- //WebRequest request = new GetMethodWebRequest( "http://localhost/feeds/unauthorized-repo" );
MockHttpServletRequest request = new MockHttpServletRequest();
request.setRequestURI( "/feeds/unauthorized-repo" );
}
@Override
- public AuthorizationResult authorize( SecuritySession arg0, String arg1, String arg2 )
+ public AuthorizationResult authorize( SecuritySession arg0, String permission, String repositoryId )
throws AuthorizationException
{
- AuthorizationResult result = new AuthorizationResult( true, arg1, null );
+ AuthorizationResult result = new AuthorizationResult( this.repoIds.contains( repositoryId ), permission, null );
return result;
}
-->
-<configuration status="debug">
+<configuration> <!-- status="debug"> -->
<appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>