diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-02-24 10:25:43 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-02-24 10:25:43 +0100 |
| commit | 684e8419fb4fa0f38fe9a1fd3b474a853a274484 (patch) | |
| tree | ea2320aea9ca2392aec59b6a87b8db676b0f16bd /tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java | |
| parent | c32d501ce28356c99b3b89d39bc2a3a345018efc (diff) | |
| download | cgeo-684e8419fb4fa0f38fe9a1fd3b474a853a274484.zip cgeo-684e8419fb4fa0f38fe9a1fd3b474a853a274484.tar.gz cgeo-684e8419fb4fa0f38fe9a1fd3b474a853a274484.tar.bz2 | |
code cleanup
* rename several lower case classes
* more strict visibility modifiers
* Lint warnings
* style warnings
Diffstat (limited to 'tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java index e5573ba..8d2d114 100644 --- a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java +++ b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java @@ -24,7 +24,7 @@ public class CacheAttributeTest extends AndroidTestCase { } public static void testGetL10n() { - CacheAttribute attribute = CacheAttribute.HIKING; + final CacheAttribute attribute = CacheAttribute.HIKING; // This test is language dependend. It does not make sense to test it // with every attribute. We just want to know if getL10n works // correctly @@ -33,7 +33,7 @@ public class CacheAttributeTest extends AndroidTestCase { } public static void testGetBy() { - CacheAttribute attribute = CacheAttribute.HIKING; // an attribute that is present in GC and OC + final CacheAttribute attribute = CacheAttribute.HIKING; // an attribute that is present in GC and OC assertTrue("Test cannot be run with this attribute", attribute.gcid >= 0); assertTrue("Test cannot be run with this attribute", attribute.ocid >= 0); assertSame(CacheAttribute.getByRawName(attribute.rawName), attribute); @@ -42,9 +42,9 @@ public class CacheAttributeTest extends AndroidTestCase { } public static void testIsEnabled() { - CacheAttribute attribute = CacheAttribute.HIKING; - String hiking_yes = attribute.getAttributeName(true); - String hiking_no = attribute.getAttributeName(false); + final CacheAttribute attribute = CacheAttribute.HIKING; + final String hiking_yes = attribute.getAttributeName(true); + final String hiking_no = attribute.getAttributeName(false); assertTrue(CacheAttribute.isEnabled(hiking_yes)); assertFalse(CacheAttribute.isEnabled(hiking_no)); } |
