Revision 12043 trunk/libraries/libFMap/src-test/com/iver/cit/gvsig/fmap/AllTests.java
AllTests.java | ||
---|---|---|
10 | 10 |
import org.cresques.cts.IProjection; |
11 | 11 |
|
12 | 12 |
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException; |
13 |
import com.iver.cit.gvsig.fmap.core.symbols.CharacterMarkerSymbol; |
|
14 |
import com.iver.cit.gvsig.fmap.core.symbols.DotDensityFillSymbol; |
|
15 |
import com.iver.cit.gvsig.fmap.core.symbols.MarkerFillSymbol; |
|
16 |
import com.iver.cit.gvsig.fmap.core.symbols.PictureMarkerSymbol; |
|
17 |
import com.iver.cit.gvsig.fmap.core.symbols.SimpleFillSymbol; |
|
18 |
import com.iver.cit.gvsig.fmap.core.symbols.SimpleLineSymbol; |
|
19 |
import com.iver.cit.gvsig.fmap.core.symbols.SimpleMarkerSymbol; |
|
20 |
import com.iver.cit.gvsig.fmap.core.symbols.SimpleTextSymbol; |
|
21 |
import com.iver.cit.gvsig.fmap.core.symbols.SmartTextSymbol; |
|
22 | 13 |
import com.iver.cit.gvsig.fmap.core.symbols.TestCartographySupport; |
23 | 14 |
import com.iver.cit.gvsig.fmap.core.symbols.TestISymbol; |
24 | 15 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
... | ... | |
28 | 19 |
import com.iver.cit.gvsig.fmap.layers.LayersIteratorTest; |
29 | 20 |
|
30 | 21 |
public class AllTests extends TestCase{ |
22 |
public static IProjection TEST_DEFAULT_PROJECTION = |
|
23 |
CRSFactory.getCRS("EPSG:4326"); |
|
24 |
public static IProjection TEST_DEFAULT_MERCATOR_PROJECTION = |
|
25 |
CRSFactory.getCRS("EPSG:23030"); |
|
26 |
public static IProjection test_newProjection = |
|
27 |
CRSFactory.getCRS("EPSG:23029"); |
|
31 | 28 |
|
32 |
|
|
33 | 29 |
public static Test suite() { |
34 | 30 |
TestSuite suite = new TestSuite("Test for com.iver.cit.gvsig.fmap"); |
35 | 31 |
//$JUnit-BEGIN$ |
... | ... | |
40 | 36 |
|
41 | 37 |
/* Symbols (jaume) */ |
42 | 38 |
// integration tests |
43 |
// symbols to test integration |
|
44 |
TestISymbol.addSymbolToTest(SimpleMarkerSymbol.class); |
|
45 |
TestISymbol.addSymbolToTest(CharacterMarkerSymbol.class); |
|
46 |
TestISymbol.addSymbolToTest(PictureMarkerSymbol.class); |
|
47 |
TestISymbol.addSymbolToTest(DotDensityFillSymbol.class); |
|
48 |
TestISymbol.addSymbolToTest(MarkerFillSymbol.class); |
|
49 |
TestISymbol.addSymbolToTest(SimpleFillSymbol.class); |
|
50 |
TestISymbol.addSymbolToTest(SimpleLineSymbol.class); |
|
51 |
TestISymbol.addSymbolToTest(SimpleTextSymbol.class); |
|
52 |
TestISymbol.addSymbolToTest(SmartTextSymbol.class); |
|
53 |
TestISymbol.addSymbolToTest(SimpleMarkerSymbol.class); |
|
54 |
|
|
55 | 39 |
// ISymbol |
56 | 40 |
suite.addTestSuite(TestISymbol.class); |
57 | 41 |
|
... | ... | |
72 | 56 |
static final String fwAndamiDriverPath = "../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"; |
73 | 57 |
private static File baseDataPath; |
74 | 58 |
private static File baseDriversPath; |
75 |
public static IProjection TEST_PROJECTION_DEFAULT = |
|
76 |
CRSFactory.getCRS("EPSG:23030"); |
|
77 |
public static IProjection test_newProjection = |
|
78 |
CRSFactory.getCRS("EPSG:23029"); |
|
79 | 59 |
|
60 |
|
|
80 | 61 |
public static void setUpDrivers() { |
81 | 62 |
try { |
82 | 63 |
URL url = AllTests.class.getResource("testdata"); |
... | ... | |
105 | 86 |
File file = new File(baseDataPath, fileName); |
106 | 87 |
return LayerFactory.createLayer(fileName, |
107 | 88 |
driverName, |
108 |
file, TEST_PROJECTION_DEFAULT);
|
|
89 |
file, TEST_DEFAULT_MERCATOR_PROJECTION);
|
|
109 | 90 |
} |
110 | 91 |
|
111 | 92 |
public static MapContext newMapContext(IProjection projection) { |
112 | 93 |
ViewPort vp = new ViewPort(projection); |
113 | 94 |
return new MapContext(vp); |
114 | 95 |
} |
96 |
|
|
115 | 97 |
//// end past |
116 | 98 |
} |
Also available in: Unified diff