aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-06-21 22:57:04 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-06-21 22:57:04 +0200
commitfa304904c15d4674c76e6f6c5fe00ca0ae408515 (patch)
tree8d7569fe9d4aab03d05d7e55e048a0c6f16313ff /tests/src/cgeo
parent786332e2233d61c24ad0865d8afe541e4337baf9 (diff)
downloadcgeo-fa304904c15d4674c76e6f6c5fe00ca0ae408515.zip
cgeo-fa304904c15d4674c76e6f6c5fe00ca0ae408515.tar.gz
cgeo-fa304904c15d4674c76e6f6c5fe00ca0ae408515.tar.bz2
refactoring: use static modifier for tests
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r--tests/src/cgeo/geocaching/speech/TextFactoryTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/cgeo/geocaching/speech/TextFactoryTest.java b/tests/src/cgeo/geocaching/speech/TextFactoryTest.java
index be5c308..7e237a1 100644
--- a/tests/src/cgeo/geocaching/speech/TextFactoryTest.java
+++ b/tests/src/cgeo/geocaching/speech/TextFactoryTest.java
@@ -41,7 +41,7 @@ public class TextFactoryTest extends AndroidTestCase {
setLocale(defaultLocale1, defaultLocale2, defaultMetric);
}
- public void testGetTextEn() {
+ public static void testGetTextEn() {
setLocale(Locale.UK, true);
assertEquals("one o'clock. 6 kilometers", TextFactory.getText(MY_POSITION, NORTH_6100M, 330));
assertEquals("9 o'clock. 1.6 kilometers", TextFactory.getText(MY_POSITION, WEST_1MILE, 0));
@@ -61,7 +61,7 @@ public class TextFactoryTest extends AndroidTestCase {
assertEquals("12 o'clock. 0 feet", TextFactory.getText(MY_POSITION, MY_POSITION, 0));
}
- public void testGetTextDe() {
+ public static void testGetTextDe() {
setLocale(Locale.GERMANY, true);
assertEquals("ein Uhr. 6 Kilometer", TextFactory.getText(MY_POSITION, NORTH_6100M, 330));
assertEquals("9 Uhr. 1,6 Kilometer", TextFactory.getText(MY_POSITION, WEST_1MILE, 0));
@@ -81,7 +81,7 @@ public class TextFactoryTest extends AndroidTestCase {
assertEquals("12 Uhr. 0 Fuß", TextFactory.getText(MY_POSITION, MY_POSITION, 0));
}
- public void testGetTextFr() {
+ public static void testGetTextFr() {
setLocale(Locale.FRANCE, true);
assertEquals("une heure. 6 kilomètres", TextFactory.getText(MY_POSITION, NORTH_6100M, 330));
assertEquals("9 heures. 1,6 kilomètres", TextFactory.getText(MY_POSITION, WEST_1MILE, 0));
@@ -101,7 +101,7 @@ public class TextFactoryTest extends AndroidTestCase {
assertEquals("12 heures. 0 pied", TextFactory.getText(MY_POSITION, MY_POSITION, 0));
}
- public void testGetTextIt() {
+ public static void testGetTextIt() {
setLocale(Locale.ITALY, true);
assertEquals("a ore una. 6 chilometri", TextFactory.getText(MY_POSITION, NORTH_6100M, 330));
assertEquals("a ore 9. 1,6 chilometri", TextFactory.getText(MY_POSITION, WEST_1MILE, 0));
@@ -121,7 +121,7 @@ public class TextFactoryTest extends AndroidTestCase {
assertEquals("a ore 12. 0 piedi", TextFactory.getText(MY_POSITION, MY_POSITION, 0));
}
- public void testGetTextSv() {
+ public static void testGetTextSv() {
setLocale(new Locale("sv", "SE"), true);
assertEquals("Klockan ett. 6 kilometer", TextFactory.getText(MY_POSITION, NORTH_6100M, 330));
assertEquals("Klockan 9. 1,6 kilometer", TextFactory.getText(MY_POSITION, WEST_1MILE, 0));