@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); contains("Geomajas", copyrights); contains("JTS", copyrights); contains("Spring Framework", copyrights); contains("Apache commons", copyrights); contains("slf4j", copyrights); contains("javax.annotation", copyrights); contains("javax.validation", copyrights); contains("GeoTools", copyrights); }
@Override public void execute(EmptyCommandRequest request, CopyrightResponse response) throws Exception { response.setCopyrights(new ArrayList<CopyrightInfo>(copyrightMap.values())); }
CopyrightCommand implements CommandHasRequest<EmptyCommandRequest, CopyrightResponse> { @Override public void execute(EmptyCommandRequest request, CopyrightResponse response) throws Exception { response.setCopyrights(new ArrayList<CopyrightInfo>(copyrightMap.values())); } }
CopyrightCommand implements CommandHasRequest<EmptyCommandRequest, CopyrightResponse> { @Override public void execute(EmptyCommandRequest request, CopyrightResponse response) throws Exception { response.setCopyrights(new ArrayList<CopyrightInfo>(copyrightMap.values())); }  }
CopyrightCommand implements CommandHasRequest<EmptyCommandRequest, CopyrightResponse> { @Override public void execute(EmptyCommandRequest request, CopyrightResponse response) throws Exception { response.setCopyrights(new ArrayList<CopyrightInfo>(copyrightMap.values())); }  @Override EmptyCommandRequest getEmptyCommandRequest(); @Override CopyrightResponse getEmptyCommandResponse(); @Override void execute(EmptyCommandRequest request, CopyrightResponse response); }
CopyrightCommand implements CommandHasRequest<EmptyCommandRequest, CopyrightResponse> { @Override public void execute(EmptyCommandRequest request, CopyrightResponse response) throws Exception { response.setCopyrights(new ArrayList<CopyrightInfo>(copyrightMap.values())); }  @Override EmptyCommandRequest getEmptyCommandRequest(); @Override CopyrightResponse getEmptyCommandResponse(); @Override void execute(EmptyCommandRequest request, CopyrightResponse response);  }