Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/util/DistanceCalculatorTestCase.java @ 778:9a828e5a2390
Removed trailing whitespace
gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 07:58:51 +0000 |
parents | 5fc8f41669a6 |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
777:8009961db1cb | 778:9a828e5a2390 |
---|---|
11 public class DistanceCalculatorTestCase extends TestCase { | 11 public class DistanceCalculatorTestCase extends TestCase { |
12 | 12 |
13 public DistanceCalculatorTestCase(String name) { | 13 public DistanceCalculatorTestCase(String name) { |
14 super(name); | 14 super(name); |
15 } | 15 } |
16 | 16 |
17 public void testDistanceCalculator(){ | 17 public void testDistanceCalculator(){ |
18 | 18 |
19 GeometryFactory gf = new GeometryFactory(); | 19 GeometryFactory gf = new GeometryFactory(); |
20 | 20 |
21 // Distance between Berlin and Tokio | 21 // Distance between Berlin and Tokio |
22 Point p1 = gf.createPoint(new Coordinate(13.4000, 52.5167)); | 22 Point p1 = gf.createPoint(new Coordinate(13.4000, 52.5167)); |
23 Point p2 = gf.createPoint(new Coordinate(139.7667, 35.7000)); | 23 Point p2 = gf.createPoint(new Coordinate(139.7667, 35.7000)); |
24 | 24 |
25 double s = new DistanceCalculator().calculateDistance(p1, p2); | 25 double s = new DistanceCalculator().calculateDistance(p1, p2); |
26 | 26 |
27 assertEquals(8941.201227763724, s); | 27 assertEquals(8941.201227763724, s); |
28 } | 28 } |
29 | 29 |
30 } | 30 } |