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);