aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java')
-rw-r--r--tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java5
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();