Examples of CopyrightResponse


Examples of org.geomajas.command.dto.CopyrightResponse

  private CommandDispatcher dispatcher;

  @Test
  public void testCopyright() throws Exception {
    CopyrightRequest request = new CopyrightRequest();
    CopyrightResponse response = (CopyrightResponse) dispatcher.execute(
        CopyrightRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertFalse(response.isError());
    List<CopyrightInfo> copyrights = response.getCopyrights();
    Assert.assertNotNull(copyrights);
    Assert.assertTrue(copyrights.size() > 12); // this number is somewhat arbitrary
    contains("Geomajas", copyrights);
    contains("JTS", copyrights);
    contains("Spring Framework", copyrights);
View Full Code Here

Examples of org.geomajas.command.dto.CopyrightResponse

      }
    }
  }

  public CopyrightResponse getEmptyCommandResponse() {
    return new CopyrightResponse();
  }
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.