api.processActions( new ApiAction[] { action } );
verify( action );
}
public void testActionIsRunWhenActionRequiresLoginButServerDoesNot() throws Exception {
ApiAction action = createNiceMock( ApiAction.class );
expect( action.canHandle((Request)anyObject()) ).andReturn( Boolean.TRUE );
action.handleRequest();
replay( action );
//
p.set( Constants.WWW_USERS_REQUIRE_LOGIN, p.NO );
api.setUser( null );
api.processActions( new ApiAction[] { action } );