aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-28 14:58:52 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-28 14:58:52 +0200
commit147fa8c912c8748a9b4eb25c67420841363f3be0 (patch)
treebe43054d6d5ec6ee4d01645678d0f411d3242d68 /jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java
parent695209a356ecae42536fd394189a98cf5274518e (diff)
Convert jdisc_core to junit5
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java
index f90251bc16e..30169699077 100644
--- a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java
+++ b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ContentInputStreamTestCase.java
@@ -1,11 +1,11 @@
// 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 java.util.concurrent.Future;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
@@ -14,13 +14,13 @@ import static org.junit.Assert.assertTrue;
public class ContentInputStreamTestCase {
@Test
- public void requireThatContentInputStreamExtendsUnsafeContentInputStream() {
+ void requireThatContentInputStreamExtendsUnsafeContentInputStream() {
assertTrue(UnsafeContentInputStream.class.isAssignableFrom(ContentInputStream.class));
}
@Test
@SuppressWarnings("FinalizeCalledExplicitly")
- public void requireThatFinalizerClosesStream() throws Throwable {
+ void requireThatFinalizerClosesStream() throws Throwable {
BufferedContentChannel channel = new BufferedContentChannel();
FastContentWriter writer = new FastContentWriter(channel);
writer.write("foo");