1.1 --- a/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java Tue May 25 17:22:31 2010 +0200
1.2 +++ b/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java Fri Jan 14 18:49:43 2011 +0100
1.3 @@ -10,38 +10,38 @@
1.4 */
1.5 public class GeoTest {
1.6
1.7 - private Geo geo = new Geo();
1.8 - private static final int CASOVY_LIMIT = 1000;
1.9 + private Geo geo = new Geo();
1.10 + private static final int CASOVY_LIMIT = 1000;
1.11
1.12 - @Test(timeout = CASOVY_LIMIT)
1.13 - public void praha() {
1.14 - testuj("Praha, Czech Republic", 50.0878114, 14.4204598);
1.15 - }
1.16 + @Test(timeout = CASOVY_LIMIT)
1.17 + public void praha() {
1.18 + testuj("Praha, Czech Republic", 50.0878114, 14.4204598);
1.19 + }
1.20
1.21 - @Test(timeout = CASOVY_LIMIT)
1.22 - public void sanghaj() {
1.23 - // https://frantovo.cz/blog/?q=cina-sanghaj-mesto-lide :-)
1.24 - testuj("Shanghai, China", 31.230708, 121.472916);
1.25 - }
1.26 + @Test(timeout = CASOVY_LIMIT)
1.27 + public void sanghaj() {
1.28 + // https://frantovo.cz/blog/?q=cina-sanghaj-mesto-lide :-)
1.29 + testuj("Shanghai, China", 31.230708, 121.472916);
1.30 + }
1.31
1.32 - @Test(timeout = CASOVY_LIMIT)
1.33 - public void dallas() {
1.34 - testuj("Dallas, TX", 32.802955, -96.769923);
1.35 - }
1.36 + @Test(timeout = CASOVY_LIMIT)
1.37 + public void dallas() {
1.38 + testuj("Dallas, TX", 32.802955, -96.769923);
1.39 + }
1.40
1.41 - @Test(timeout = CASOVY_LIMIT)
1.42 - public void moskva() {
1.43 - testuj("Moscow, Russia", 55.755786, 37.617633);
1.44 - }
1.45 + @Test(timeout = CASOVY_LIMIT)
1.46 + public void moskva() {
1.47 + testuj("Moscow, Russia", 55.755786, 37.617633);
1.48 + }
1.49
1.50 - @Test
1.51 - public void loc() {
1.52 - Souradnice s = geo.new Souradnice(55.755786, 37.617633);
1.53 - assertEquals("Loc: 55.755786, 37.617633", s.getLoc());
1.54 - }
1.55 + @Test
1.56 + public void loc() {
1.57 + Souradnice s = geo.new Souradnice(55.755786, 37.617633);
1.58 + assertEquals("Loc: 55.755786, 37.617633", s.getLoc());
1.59 + }
1.60
1.61 - private void testuj(String vstup, double pozadovanaSirka, double pozadovanaDelka) {
1.62 - Souradnice vystup = geo.getSouradnice(vstup);
1.63 - assertEquals(geo.new Souradnice(pozadovanaSirka, pozadovanaDelka), vystup);
1.64 - }
1.65 + private void testuj(String vstup, double pozadovanaSirka, double pozadovanaDelka) {
1.66 + Souradnice vystup = geo.getSouradnice(vstup);
1.67 + assertEquals(geo.new Souradnice(pozadovanaSirka, pozadovanaDelka), vystup);
1.68 + }
1.69 }