aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java')
-rw-r--r--tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java b/tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java
index e2ef2ba..a0aaa68 100644
--- a/tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java
+++ b/tests/src/cgeo/geocaching/files/ProgressInputStreamTest.java
@@ -1,5 +1,7 @@
package cgeo.geocaching.files;
+import static org.assertj.core.api.Assertions.assertThat;
+
import org.apache.commons.io.IOUtils;
import junit.framework.TestCase;
@@ -8,14 +10,14 @@ public class ProgressInputStreamTest extends TestCase {
public static void testRead() throws Exception {
ProgressInputStream stream = new ProgressInputStream(IOUtils.toInputStream("test"));
- assertEquals(0, stream.getProgress());
+ assertThat(stream.getProgress()).isEqualTo(0);
int bytesRead = 0;
while (stream.read() >= 0 && bytesRead < 10000) {
bytesRead++;
}
- assertEquals(4, bytesRead);
- assertEquals(4, stream.getProgress());
+ assertThat(bytesRead).isEqualTo(4);
+ assertThat(stream.getProgress()).isEqualTo(4);
IOUtils.closeQuietly(stream);
}