root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.catalog / org.gvsig.proj.catalog.api / src / test / java / org / gvsig / proj / catalog / CRSCatalogLocatorTest.java @ 807
History | View | Annotate | Download (5 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2012 gvSIG Association
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18 |
* MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.proj.catalog; |
24 |
|
25 |
import java.io.File; |
26 |
import java.util.List; |
27 |
|
28 |
import org.gvsig.proj.catalog.CRSCatalogLocator; |
29 |
import org.gvsig.proj.catalog.CRSCatalogManager; |
30 |
import org.gvsig.proj.catalog.CRSDefinition; |
31 |
import org.gvsig.proj.catalog.TransformationDefinition; |
32 |
import org.gvsig.tools.dynobject.DynObject; |
33 |
|
34 |
import junit.framework.TestCase; |
35 |
|
36 |
/**
|
37 |
* {@link CRSCatalogLocator} unit tests.
|
38 |
*
|
39 |
* @author gvSIG Team
|
40 |
*/
|
41 |
public class CRSCatalogLocatorTest extends TestCase { |
42 |
|
43 |
/**
|
44 |
* Test method for
|
45 |
* {@link org.gvsig.proj.catalogue.CRSCatalogLocator#registerManager(java.lang.Class)}
|
46 |
* .
|
47 |
*/
|
48 |
public void testRegisterManager() { |
49 |
CRSCatalogLocator |
50 |
.registerManager(DummyCRSCatalogueManager.class); |
51 |
CRSCatalogManager manager = |
52 |
CRSCatalogLocator.getManager(); |
53 |
assertTrue(manager instanceof DummyCRSCatalogueManager);
|
54 |
} |
55 |
|
56 |
public static class DummyCRSCatalogueManager implements |
57 |
CRSCatalogManager { |
58 |
|
59 |
public List getAuthorityNames() { |
60 |
// Nothing to do
|
61 |
return null; |
62 |
} |
63 |
|
64 |
public List getCodes(String authorityName) { |
65 |
// Nothing to do
|
66 |
return null; |
67 |
} |
68 |
|
69 |
public CRSDefinition getCRSDefinition(String authorityName, |
70 |
String code) {
|
71 |
// Nothing to do
|
72 |
return null; |
73 |
} |
74 |
|
75 |
public DynObject createParameters() {
|
76 |
// Nothing to do
|
77 |
return null; |
78 |
} |
79 |
|
80 |
public void initialize(DynObject parameters) { |
81 |
// Nothing to do
|
82 |
} |
83 |
|
84 |
@Override
|
85 |
public List<String> getCodes() { |
86 |
// TODO Auto-generated method stub
|
87 |
return null; |
88 |
} |
89 |
|
90 |
@Override
|
91 |
public List<String> search(String searchString) { |
92 |
// TODO Auto-generated method stub
|
93 |
return null; |
94 |
} |
95 |
|
96 |
@Override
|
97 |
public List<String> search(String authority, String searchString) { |
98 |
// TODO Auto-generated method stub
|
99 |
return null; |
100 |
} |
101 |
|
102 |
@Override
|
103 |
public CRSDefinition getCRSDefinition(String code) { |
104 |
// TODO Auto-generated method stub
|
105 |
return null; |
106 |
} |
107 |
|
108 |
@Override
|
109 |
public CRSDefinition getCRSDefinitionFromWKT(String wkt) { |
110 |
// TODO Auto-generated method stub
|
111 |
return null; |
112 |
} |
113 |
|
114 |
@Override
|
115 |
public TransformationDefinition getTransformationDefinition(String code) { |
116 |
// TODO Auto-generated method stub
|
117 |
return null; |
118 |
} |
119 |
|
120 |
@Override
|
121 |
public String registerCoordinateReferenceSystem(String wktDefinition, String description) { |
122 |
// TODO Auto-generated method stub
|
123 |
return null; |
124 |
} |
125 |
|
126 |
@Override
|
127 |
public String registerCoordinateTransformationPVT(String sourceCRS, String targetCRS, String description, |
128 |
float xTraslation, float yTraslation, float zTraslation, float xRotation, float yRotation, |
129 |
float zRotation, float scaleDifference) { |
130 |
// TODO Auto-generated method stub
|
131 |
return null; |
132 |
} |
133 |
|
134 |
@Override
|
135 |
public String registerCoordinateTransformationCFR(String sourceCRS, String targetCRS, String description, |
136 |
float xTraslation, float yTraslation, float zTraslation, float xRotation, float yRotation, |
137 |
float zRotation, float scaleDifference) { |
138 |
// TODO Auto-generated method stub
|
139 |
return null; |
140 |
} |
141 |
|
142 |
@Override
|
143 |
public String registerCoordinateTransformation(String sourceCRS, String targetCRS, String description, |
144 |
File ntv2Grid) {
|
145 |
// TODO Auto-generated method stub
|
146 |
return null; |
147 |
} |
148 |
|
149 |
@Override
|
150 |
public List<TransformationDefinition> getCoordinateTransformations(CRSDefinition source, CRSDefinition target) { |
151 |
// TODO Auto-generated method stub
|
152 |
return null; |
153 |
} |
154 |
|
155 |
@Override
|
156 |
public List<TransformationDefinition> getCoordinateTransformations(String source, String target) { |
157 |
// TODO Auto-generated method stub
|
158 |
return null; |
159 |
} |
160 |
|
161 |
@Override
|
162 |
public TransformationDefinition getTransformationDefinitionFromWKT(String wkt) { |
163 |
// TODO Auto-generated method stub
|
164 |
return null; |
165 |
} |
166 |
|
167 |
@Override
|
168 |
public String registerTransformation(String wktDefinition, String description) { |
169 |
// TODO Auto-generated method stub
|
170 |
return null; |
171 |
} |
172 |
|
173 |
@Override
|
174 |
public CRSDefinition getCompoundCRS(CRSDefinition... crsList) {
|
175 |
// TODO Auto-generated method stub
|
176 |
return null; |
177 |
} |
178 |
|
179 |
} |
180 |
|
181 |
} |