# HG changeset patch # User František Kučera # Date 1274800951 -7200 # Node ID 1eecc767a610f55167d18ed345fe1b7230509ed4 # Parent e720890878acba2ce961c1c673dc88aacde5484b Přidány časové limity pro testování vzdálených služeb (1 vteřina). diff -r e720890878ac -r 1eecc767a610 java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java --- a/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java Tue May 25 17:16:36 2010 +0200 +++ b/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java Tue May 25 17:22:31 2010 +0200 @@ -11,24 +11,25 @@ public class GeoTest { private Geo geo = new Geo(); + private static final int CASOVY_LIMIT = 1000; - @Test + @Test(timeout = CASOVY_LIMIT) public void praha() { testuj("Praha, Czech Republic", 50.0878114, 14.4204598); } - @Test + @Test(timeout = CASOVY_LIMIT) public void sanghaj() { // https://frantovo.cz/blog/?q=cina-sanghaj-mesto-lide :-) testuj("Shanghai, China", 31.230708, 121.472916); } - @Test + @Test(timeout = CASOVY_LIMIT) public void dallas() { testuj("Dallas, TX", 32.802955, -96.769923); } - @Test + @Test(timeout = CASOVY_LIMIT) public void moskva() { testuj("Moscow, Russia", 55.755786, 37.617633); } diff -r e720890878ac -r 1eecc767a610 java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/TexyTest.java --- a/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/TexyTest.java Tue May 25 17:16:36 2010 +0200 +++ b/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/TexyTest.java Tue May 25 17:22:31 2010 +0200 @@ -12,14 +12,15 @@ public class TexyTest { private Texy texy = new Texy(); + private static final int CASOVY_LIMIT = 1000; - @Test + @Test(timeout = CASOVY_LIMIT) public void prostyText() { testuj("", ""); testuj("ahoj", "

ahoj

"); } - @Test + @Test(timeout = CASOVY_LIMIT) public void nadpisy() { testuj("===Nadpis===", "

Nadpis

"); }