public void testStartupRequestWithParameter() throws Exception {
    RWTFactory.getEntryPointManager().registerByPath("/rap", DefaultEntryPoint.class, null);
    Fixture.fakeNewGetRequest();
    Fixture.fakeRequestParam("param", "value");
    RWTFactory.getServiceManager().getHandler().service();

    Fixture.fakeNewRequest();
    Fixture.fakeRequestParam("param", null);
    Fixture.fakeRequestParam(RequestParams.RWT_INITIALIZE, "true");
    RWTFactory.getServiceManager().getHandler().service();

    assertEquals("value", ContextProvider.getRequest().getParameter("param"));
  }
Beispiel #2
0
 /**
  * Implements check function with same arguments of Authorisation security implementation
  *
  * @see Verify#check(UserContext, Query, Operation)
  */
 public Authorization.QueryCheck check(User userContext, Query query, Operation operation) {
   return provider.check(userContext, query, operation);
 }
Beispiel #3
0
 protected boolean mayDo(
     MMObjectNode user, MMObjectNode contextNode, Operation operation, boolean checkOwnRights) {
   return provider.mayDoOnContext(user, contextNode, operation, checkOwnRights);
 }