aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/apps
diff options
context:
space:
mode:
authorMichael Keppler <michael.keppler@gmx.de>2014-04-22 17:30:51 +0200
committerMichael Keppler <michael.keppler@gmx.de>2014-04-22 21:44:00 +0200
commitcc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0 (patch)
treefca2712f72bb2759ef4e39c0235a8a5054f27013 /tests/src/cgeo/geocaching/apps
parent825b779844b280ba7c1effdd4185cc856eccdf5b (diff)
downloadcgeo-cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0.zip
cgeo-cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0.tar.gz
cgeo-cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0.tar.bz2
#2414 convert junit statements to assertj
This conversion is not complete, but the remaining statements are hard to catch with regular expressions automatically.
Diffstat (limited to 'tests/src/cgeo/geocaching/apps')
-rw-r--r--tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java b/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java
index 2d510ab..894d028 100644
--- a/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java
+++ b/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java
@@ -1,5 +1,7 @@
package cgeo.geocaching.apps.cache.navi;
+import static org.assertj.core.api.Assertions.assertThat;
+
import cgeo.geocaching.apps.cache.navi.NavigationAppFactory.NavigationAppsEnum;
import java.util.HashSet;
@@ -13,7 +15,7 @@ public class NavigationAppFactoryTest extends TestCase {
for (NavigationAppsEnum navigationApp : NavigationAppsEnum.values()) {
idSet.add(navigationApp.id);
}
- assertEquals("Duplicate id in " + NavigationAppsEnum.class.getSimpleName(), NavigationAppsEnum.values().length, idSet.size());
+ assertThat(idSet).doesNotHaveDuplicates();
}
}