1. kubek2k
  2. rt90coordinatestransformer

Commits

Jakub Janczak  committed 616023f

new test added

  • Participants
  • Parent commits a56d315
  • Branches master

Comments (0)

Files changed (1)

File src/test/java/org/kubek2k/rt90coordinatesconverter/GaussKrugerProjectionTest.java

View file
     public void testAftonbladetCentral() throws Exception {
         RT90GeoCoordinates rt90GeoCoordinates = gaussKrugerProjection.getRT90(new WGS84Coordinates(59.332183, 18.053026));
 
-        assertEquals(Float.valueOf(rt90GeoCoordinates.getX()), 6581200, 2.0);
-        assertEquals(Float.valueOf(rt90GeoCoordinates.getY()), 1627935, 2.0);
+        assertEquals(rt90GeoCoordinates.getX(), 6581200, 2.0);
+        assertEquals(rt90GeoCoordinates.getY(), 1627935, 2.0);
     }
+
+    @Test
+    public void testSomeHotelRestaurant() throws Exception {
+        RT90GeoCoordinates rt90GeoCoordinates = gaussKrugerProjection.getRT90(new WGS84Coordinates(59.3525207, 18.04338818));
+
+        assertEquals(rt90GeoCoordinates.getX(), 6583446, 2.0);
+        assertEquals(rt90GeoCoordinates.getY(), 1627311, 2.0);
+    }
+
 }