Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.GetClientUserDataResponse


  public void testFetchCorrectObject() {
    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(ALLOWED_BEAN_ID);
    request.setClassName(ClientUserDataObject.class.getName());

    GetClientUserDataResponse response = (GetClientUserDataResponse) dispatcher.execute(
        GetClientUserDataRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertFalse(response.isError());
    Assert.assertNotNull(response.getInformation());
  }
View Full Code Here


  public void testFetchWrongObject() {
    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(DISALLOWED_BEAN_ID);
    request.setClassName("org.geomajas.configuration.RasterLayerInfo");

    GetClientUserDataResponse response = (GetClientUserDataResponse) dispatcher.execute(
        GetClientUserDataRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertTrue(response.isError());
    Assert.assertNull(response.getInformation());
  }
View Full Code Here

  @Autowired
  private ApplicationContext context;

  public GetClientUserDataResponse getEmptyCommandResponse() {
    return new GetClientUserDataResponse();
  }
View Full Code Here

TOP

Related Classes of org.geomajas.command.dto.GetClientUserDataResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.