Examples of GetLocationForStringRequest


Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

  @Autowired
  private CommandDispatcher commandDispatcher;

  @Test
  public void expandPointTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("booischot");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertEquals("schotbooi", ((UserDataTestInfo)response.getUserData()).getValue());
  }

  @Test
  public void crsTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:4326");
    request.setLocation("Booischot");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertEquals(45.53964302945367, response.getCenter().getY(), DELTA);
  }

  @Test
  public void secondServiceTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("second");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertNull(response.getUserData());
  }

  @Test
  public void bboxTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("bbox");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertNull(response.getUserData());
  }

  @Test
  public void combineBboxTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("bla");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertNull(response.getGeocoderName());
  }

  @Test
  public void notFoundTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("other");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

  @Autowired
  private CommandDispatcher commandDispatcher;

  @Test
  public void oneResultTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:4326");
    request.setLocation("booischot");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    // @extract-skip-start
    Assert.assertNotNull(commandResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

  }
  // @extract-end

  @Test
  public void oneResultCrsTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("booischot");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertEquals("GeoNames", response.getGeocoderName());
  }

  @Test
  public void alternativesTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:4326");
    request.setLocation("London, GB");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringRequest

    Assert.assertEquals("GeoNames", alt.getGeocoderName());
  }

  @Test
  public void alternativesCrsTest() throws Exception {
    GetLocationForStringRequest request = new GetLocationForStringRequest();
    request.setCrs("EPSG:900913");
    request.setLocation("London, GB");

    CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
        "en");
    Assert.assertNotNull(commandResponse);
    Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.