diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/SettingsTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/SettingsTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/SettingsTest.java b/tests/src/cgeo/geocaching/SettingsTest.java index 90a0209..4c342b3 100644 --- a/tests/src/cgeo/geocaching/SettingsTest.java +++ b/tests/src/cgeo/geocaching/SettingsTest.java @@ -1,5 +1,7 @@ package cgeo.geocaching; +import static org.assertj.core.api.Assertions.assertThat; + import cgeo.geocaching.connector.gc.GCConstants; import cgeo.geocaching.maps.mapsforge.MapsforgeMapProvider; import cgeo.geocaching.settings.Settings; @@ -22,16 +24,16 @@ public class SettingsTest extends ActivityInstrumentationTestCase2<MainActivity> final String mapFile = Settings.getMapFile(); // We just want to ensure that it does not throw any exception but we do not know anything about the result MapsforgeMapProvider.isValidMapFile(mapFile); - assertTrue(true); + assertThat(true).isTrue(); } public static void testSettings() { // unfortunately, several other tests depend on being a premium member and will fail if run by a basic member - assertEquals(GCConstants.MEMBER_STATUS_PM, Settings.getGCMemberStatus()); + assertThat(Settings.getGCMemberStatus()).isEqualTo(GCConstants.MEMBER_STATUS_PM); } public static void testDeviceHasNormalLogin() { // if the unit tests were interrupted in a previous run, the device might still have the "temporary" login data from the last tests - assertFalse("c:geo".equals(Settings.getUsername())); + assertThat("c:geo".equals(Settings.getUsername())).isFalse(); } } |
