aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/mock/MockedCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/test/mock/MockedCache.java')
-rw-r--r--tests/src/cgeo/geocaching/test/mock/MockedCache.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/test/mock/MockedCache.java b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
index d1252ce..d06e715 100644
--- a/tests/src/cgeo/geocaching/test/mock/MockedCache.java
+++ b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
@@ -1,5 +1,7 @@
package cgeo.geocaching.test.mock;
+import static org.assertj.core.api.Assertions.assertThat;
+
import cgeo.geocaching.ICache;
import cgeo.geocaching.Image;
import cgeo.geocaching.Trackable;
@@ -32,13 +34,13 @@ public abstract class MockedCache implements ICache {
}
public String getMockedDataUser() {
- Assert.assertTrue(StringUtils.isNotBlank(this.mockedDataUser));
+ assertThat(StringUtils.isNotBlank(this.mockedDataUser)).isTrue();
return mockedDataUser;
}
public void setMockedDataUser(String mockedDataUser) {
this.mockedDataUser = mockedDataUser;
- Assert.assertTrue(StringUtils.isNotBlank(this.mockedDataUser));
+ assertThat(StringUtils.isNotBlank(this.mockedDataUser)).isTrue();
}
public static String getDateFormat() {