/sigmah/src/test/java/org/sigmah/server/endpoint/gwtrpc/GetMapIconsTest.java

http://sigma-h.googlecode.com/ · Java · 32 lines · 21 code · 7 blank · 4 comment · 0 complexity · f930c0eac0c187562a83f8b9c43ecbec MD5 · raw file

  1. /*
  2. * All Sigmah code is released under the GNU General Public License v3
  3. * See COPYRIGHT.txt and LICENSE.txt.
  4. */
  5. package org.sigmah.server.endpoint.gwtrpc;
  6. import org.junit.Assert;
  7. import org.junit.Test;
  8. import org.junit.runner.RunWith;
  9. import org.sigmah.shared.domain.User;
  10. import org.sigmah.server.endpoint.gwtrpc.handler.GetMapIconsHandler;
  11. import org.sigmah.server.report.ReportModule;
  12. import org.sigmah.shared.command.GetMapIcons;
  13. import org.sigmah.shared.command.result.MapIconResult;
  14. import org.sigmah.test.InjectionSupport;
  15. import org.sigmah.test.Modules;
  16. @RunWith(InjectionSupport.class)
  17. @Modules({ReportModule.class, GwtRpcModule.class})
  18. public class GetMapIconsTest {
  19. @Test
  20. public void testGetMapIcons() throws Exception {
  21. GetMapIconsHandler handler = new GetMapIconsHandler("war/mapicons");
  22. MapIconResult result = (MapIconResult) handler.execute(new GetMapIcons(), new User());
  23. Assert.assertTrue(result.getData().size() > 0);
  24. }
  25. }