aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-05-04 14:26:29 +0200
committerJon Bratseth <bratseth@oath.com>2018-05-04 14:26:29 +0200
commit8fba29168e99e86d0a8072adcaafb84337a16eb6 (patch)
tree801101c3c410fc85e4fee445fa897eef1f411fb8 /vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java
parent8d41cf849b2e56bde07585bcf7ef1c1416b7b49c (diff)
Use new junit API
Diffstat (limited to 'vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java')
-rw-r--r--vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java b/vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java
index 26d2ff77a0f..29154b0892a 100644
--- a/vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java
+++ b/vespaclient-java/src/test/java/com/yahoo/vespafeeder/ProgressPrinterTest.java
@@ -7,14 +7,14 @@ import com.yahoo.documentapi.messagebus.protocol.DocumentIgnoredReply;
import com.yahoo.documentapi.messagebus.protocol.PutDocumentMessage;
import com.yahoo.documentapi.messagebus.protocol.UpdateDocumentMessage;
import com.yahoo.messagebus.EmptyReply;
-import junit.framework.TestCase;
+import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
-/**
- */
-public class ProgressPrinterTest extends TestCase {
+import static org.junit.Assert.assertEquals;
+
+public class ProgressPrinterTest {
class DummyTimer implements Timer {
long ms;
@@ -22,6 +22,7 @@ public class ProgressPrinterTest extends TestCase {
public long milliTime() { return ms; }
}
+ @Test
public void testSimple() {
ByteArrayOutputStream output = new ByteArrayOutputStream();
DummyTimer timer = new DummyTimer();