1 | package org.medias.eccad.metier.test; |
---|
2 | |
---|
3 | import org.medias.eccad.metier.dessinCarte.ServiceCarte; |
---|
4 | import org.medias.eccad.modele.Zone; |
---|
5 | |
---|
6 | import junit.framework.TestCase; |
---|
7 | |
---|
8 | public class TestServiceCarte extends TestCase { |
---|
9 | private ServiceCarte serv_carte; |
---|
10 | private Zone zone_affiche; |
---|
11 | // private Zone zone_selection; |
---|
12 | |
---|
13 | |
---|
14 | public TestServiceCarte(String arg0) { |
---|
15 | super(arg0); |
---|
16 | serv_carte = new ServiceCarte(); |
---|
17 | zone_affiche = new Zone(45.0, -45.0, 90, -90); |
---|
18 | // zone_selection = new Zone(90.0, -90.0, 180, -180); |
---|
19 | } |
---|
20 | |
---|
21 | public void testGetCarte() { |
---|
22 | String nom_image = serv_carte.getCarte( 1, 32, -1, zone_affiche ,"_test_carte_",null,0,false,false,0).getUrlImage(); |
---|
23 | assertEquals("/images/cartes_temporaires/_test_carte__1_32.png", nom_image); |
---|
24 | } |
---|
25 | |
---|
26 | public void testGetLegend() { |
---|
27 | //fail("Not yet implemented"); |
---|
28 | } |
---|
29 | |
---|
30 | } |
---|