author | František Kučera <franta-hg@frantovo.cz> |
Mon May 24 20:13:30 2010 +0200 (2010-05-24) | |
changeset 120 | 052107272005 |
child 121 | cd43c349f39b |
permissions | -rw-r--r-- |
franta-hg@120 | 1 |
package cz.frantovo.nekurak.ext; |
franta-hg@120 | 2 |
|
franta-hg@120 | 3 |
import cz.frantovo.nekurak.ext.Geo.Souradnice; |
franta-hg@120 | 4 |
import org.junit.Test; |
franta-hg@120 | 5 |
import static org.junit.Assert.*; |
franta-hg@120 | 6 |
|
franta-hg@120 | 7 |
/** |
franta-hg@120 | 8 |
* Testuje hlavně dostupnost a funkčnost vzdálené služby (Google). |
franta-hg@120 | 9 |
* @author fiki |
franta-hg@120 | 10 |
*/ |
franta-hg@120 | 11 |
public class GeoTest { |
franta-hg@120 | 12 |
|
franta-hg@120 | 13 |
private Geo geo = new Geo(); |
franta-hg@120 | 14 |
|
franta-hg@120 | 15 |
@Test |
franta-hg@120 | 16 |
public void praha() { |
franta-hg@120 | 17 |
testuj("Praha", 50.0878114, 14.4204598); |
franta-hg@120 | 18 |
} |
franta-hg@120 | 19 |
|
franta-hg@120 | 20 |
private void testuj(String vstup, double pozadovanaSirka, double pozadovanaDelka) { |
franta-hg@120 | 21 |
Souradnice vystup = geo.getSouradnice(vstup); |
franta-hg@120 | 22 |
assertEquals(geo.new Souradnice(pozadovanaSirka, pozadovanaDelka), vystup); |
franta-hg@120 | 23 |
} |
franta-hg@120 | 24 |
} |