Changeset 10758 in josm for trunk/test/unit/org/openstreetmap/josm/data/projection
- Timestamp:
- 2016-08-07T17:39:42+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/projection
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/EllipsoidTest.java
r9498 r10758 19 19 */ 20 20 @Test 21 public void latLon2Cart2LatLon() {21 public void testLatLon2Cart2LatLon() { 22 22 Random r = new Random(System.currentTimeMillis()); 23 23 double maxErrLat = 0, maxErrLon = 0; -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r10222 r10758 278 278 279 279 @Test 280 public void test () throws IOException {280 public void testProjections() throws IOException { 281 281 StringBuilder fail = new StringBuilder(); 282 282 Set<String> allCodes = new HashSet<>(Projections.getAllProjectionCodes()); -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java
r10065 r10758 164 164 */ 165 165 @Test 166 public void regressionTest() throws IOException {166 public void testNonRegression() throws IOException { 167 167 List<TestData> allData = readData(); 168 168 Set<String> dataCodes = new HashSet<>(); -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
r9950 r10758 24 24 25 25 @Test 26 public void projections() {26 public void testProjections() { 27 27 error = false; 28 28 text = ""; … … 104 104 105 105 @Test 106 public void projs() {106 public void testProjs() { 107 107 error2 = false; 108 108 text2 = ""; -
trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java
r10378 r10758 13 13 14 14 public class SwissGridTest { 15 p ublicstatic final String SWISS_EPSG_CODE = "EPSG:21781";15 private static final String SWISS_EPSG_CODE = "EPSG:21781"; 16 16 private boolean debug = false; 17 17 … … 56 56 } 57 57 58 p ublicstatic final double EPSILON_APPROX = 1.5;59 p ublicstatic final double EPSILON_ACCURATE = 0.05;60 61 p ublicvoid projReferenceTest(final double epsilon) {58 private static final double EPSILON_APPROX = 1.5; 59 private static final double EPSILON_ACCURATE = 0.05; 60 61 private void projReferenceTest(final double epsilon) { 62 62 Projection swiss = Projections.getProjectionByCode("EPSG:21781"); // Swiss grid 63 63 StringBuilder errs = new StringBuilder(); … … 72 72 73 73 @Test 74 public void projReferenceTestApprox() {74 public void testProjReferenceTestApprox() { 75 75 projReferenceTest(EPSILON_APPROX); 76 76 } … … 78 78 @Test 79 79 @Ignore("high accuracy of epsilon=" + EPSILON_ACCURATE + " is not met") 80 public void projReferenceTestAccurate() {80 public void testProjReferenceTestAccurate() { 81 81 // TODO make this test pass 82 82 projReferenceTest(EPSILON_ACCURATE); … … 84 84 85 85 @Test 86 public void a_latlon2eastNorth_test() {86 public void testAlatlon2eastNorth() { 87 87 LatLon ll = new LatLon(46.518, 6.567); 88 88 EastNorth en = Main.getProjection().latlon2eastNorth(ll); … … 127 127 128 128 @Test 129 public void b_eastNorth2latlon_test() {129 public void testBeastNorth2latlon() { 130 130 EastNorth en = new EastNorth(533111.69, 152227.85); 131 131 LatLon ll = Main.getProjection().eastNorth2latlon(en); … … 173 173 */ 174 174 @Test 175 public void c_sendandreturn_test() {175 public void testCsendandreturn() { 176 176 EastNorth en = new EastNorth(533111.69, 152227.85); 177 177 LatLon ll = Main.getProjection().eastNorth2latlon(en);
Note:
See TracChangeset
for help on using the changeset viewer.