diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2014-11-24 14:19:17 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2014-11-24 14:19:17 +0100 |
commit | 5bce26655db295f1d099c306811d2bc8a6480c91 (patch) | |
tree | aaed09695bcc55667aee7f3841809bd0082d3457 /tests/src/cgeo/geocaching/enumerations | |
parent | dafa3c377773ea8d08d7d96d3419a0ceb39c25dc (diff) | |
download | cgeo-5bce26655db295f1d099c306811d2bc8a6480c91.zip cgeo-5bce26655db295f1d099c306811d2bc8a6480c91.tar.gz cgeo-5bce26655db295f1d099c306811d2bc8a6480c91.tar.bz2 |
Minor reformattings in tests
Diffstat (limited to 'tests/src/cgeo/geocaching/enumerations')
-rw-r--r-- | tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java index a8a9ced..2b7ef45 100644 --- a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java +++ b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java @@ -2,6 +2,8 @@ package cgeo.geocaching.enumerations; import static org.assertj.core.api.Assertions.assertThat; +import org.apache.commons.lang3.StringUtils; + import android.test.AndroidTestCase; public class CacheAttributeTest extends AndroidTestCase { @@ -16,8 +18,7 @@ public class CacheAttributeTest extends AndroidTestCase { public static void testIds() { for (CacheAttribute attribute : CacheAttribute.values()) { if (attribute != CacheAttribute.UNKNOWN) { - assertThat(attribute.rawName != null).isTrue(); - assertThat(attribute.rawName.length() > 0).isTrue(); + assertThat(StringUtils.isNotEmpty(attribute.rawName)).isTrue(); assertThat(attribute.drawableId != 0).isTrue(); assertThat(attribute.stringIdYes != 0).isTrue(); assertThat(attribute.stringIdNo != 0).isTrue(); |