PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 6package org.sigmah.server.endpoint.gwtrpc;
 7
 8import org.junit.Assert;
 9import org.junit.Test;
10import org.junit.runner.RunWith;
11import org.sigmah.shared.domain.User;
12import org.sigmah.server.endpoint.gwtrpc.handler.GetMapIconsHandler;
13import org.sigmah.server.report.ReportModule;
14import org.sigmah.shared.command.GetMapIcons;
15import org.sigmah.shared.command.result.MapIconResult;
16import org.sigmah.test.InjectionSupport;
17import org.sigmah.test.Modules;
18
19@RunWith(InjectionSupport.class)
20@Modules({ReportModule.class, GwtRpcModule.class})
21public class GetMapIconsTest {
22
23    @Test
24    public void testGetMapIcons() throws Exception {
25
26        GetMapIconsHandler handler = new GetMapIconsHandler("war/mapicons");
27        MapIconResult result = (MapIconResult) handler.execute(new GetMapIcons(), new User());
28
29        Assert.assertTrue(result.getData().size() > 0);
30
31    }
32}