/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
- /*
- * All Sigmah code is released under the GNU General Public License v3
- * See COPYRIGHT.txt and LICENSE.txt.
- */
-
- package org.sigmah.server.endpoint.gwtrpc;
-
- import org.junit.Assert;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.sigmah.shared.domain.User;
- import org.sigmah.server.endpoint.gwtrpc.handler.GetMapIconsHandler;
- import org.sigmah.server.report.ReportModule;
- import org.sigmah.shared.command.GetMapIcons;
- import org.sigmah.shared.command.result.MapIconResult;
- import org.sigmah.test.InjectionSupport;
- import org.sigmah.test.Modules;
-
- @RunWith(InjectionSupport.class)
- @Modules({ReportModule.class, GwtRpcModule.class})
- public class GetMapIconsTest {
-
- @Test
- public void testGetMapIcons() throws Exception {
-
- GetMapIconsHandler handler = new GetMapIconsHandler("war/mapicons");
- MapIconResult result = (MapIconResult) handler.execute(new GetMapIcons(), new User());
-
- Assert.assertTrue(result.getData().size() > 0);
-
- }
- }