aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java
index 2cdc0e1256f..3f97fe014e6 100644
--- a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java
+++ b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/FastContentOutputStreamTestCase.java
@@ -1,15 +1,15 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.handler;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import java.nio.ByteBuffer;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
@@ -18,15 +18,15 @@ import static org.junit.Assert.fail;
public class FastContentOutputStreamTestCase {
@Test
- public void requireThatNullConstructorArgumentThrows() {
+ void requireThatNullConstructorArgumentThrows() {
try {
- new FastContentOutputStream((ContentChannel)null);
+ new FastContentOutputStream((ContentChannel) null);
fail();
} catch (NullPointerException e) {
assertEquals("out", e.getMessage());
}
try {
- new FastContentOutputStream((FastContentWriter)null);
+ new FastContentOutputStream((FastContentWriter) null);
fail();
} catch (NullPointerException e) {
assertEquals("out", e.getMessage());
@@ -34,11 +34,11 @@ public class FastContentOutputStreamTestCase {
}
@Test
- public void requireThatAllMethodsDelegateToWriter() throws Exception {
+ void requireThatAllMethodsDelegateToWriter() throws Exception {
FastContentWriter writer = Mockito.mock(FastContentWriter.class);
FastContentOutputStream out = new FastContentOutputStream(writer);
- out.write(new byte[] { 6, 9 });
+ out.write(new byte[]{6, 9});
out.flush();
Mockito.verify(writer).write(Mockito.any(ByteBuffer.class));