diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc/UTFGridPositionTest.java')
-rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/UTFGridPositionTest.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/UTFGridPositionTest.java b/tests/src/cgeo/geocaching/connector/gc/UTFGridPositionTest.java index a742faf..8ee022b 100644 --- a/tests/src/cgeo/geocaching/connector/gc/UTFGridPositionTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/UTFGridPositionTest.java @@ -1,21 +1,22 @@ package cgeo.geocaching.connector.gc; +import static org.assertj.core.api.Assertions.assertThat; import junit.framework.TestCase; public class UTFGridPositionTest extends TestCase { public static void testValidUTFGridPosition() { - assertNotNull(new UTFGridPosition(0, 0)); + assertThat(new UTFGridPosition(0, 0)).isNotNull(); } public static void testInvalidUTFGridPosition() { boolean valid = true; try { - assertNotNull(new UTFGridPosition(-1, 0)); + assertThat(new UTFGridPosition(-1, 0)).isNotNull(); } catch (Exception e) { valid = false; } - assertFalse(valid); + assertThat(valid).isFalse(); } public static void testFromString() throws Exception { @@ -27,8 +28,8 @@ public class UTFGridPositionTest extends TestCase { private static void assertXYFromString(final String key, int x, int y) { final UTFGridPosition pos = UTFGridPosition.fromString(key); - assertEquals(x, pos.getX()); - assertEquals(y, pos.getY()); + assertThat(pos.getX()).isEqualTo(x); + assertThat(pos.getY()).isEqualTo(y); } } |