Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.UserMaximumExtentResponse


  @Test
  public void testUserMaximumExtent() throws Exception {
    UserMaximumExtentRequest request = new UserMaximumExtentRequest();
    request.setCrs(CRS);
    request.setLayerIds(new String[] {LAYER_ID});
    UserMaximumExtentResponse response = (UserMaximumExtentResponse) dispatcher.execute(
        UserMaximumExtentRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertFalse(response.isError());
    Bbox bounds = response.getBounds();
    Assert.assertNotNull(bounds);
    Assert.assertEquals(-1.0, bounds.getX(), DOUBLE_TOLERANCE);
    Assert.assertEquals(-1.0, bounds.getY(), DOUBLE_TOLERANCE);
    Assert.assertEquals(1.0, bounds.getMaxX(), DOUBLE_TOLERANCE);
    Assert.assertEquals(1.0, bounds.getMaxY(), DOUBLE_TOLERANCE);
View Full Code Here


  @Autowired
  private SecurityContext securityContext;

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

TOP

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

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.