diff options
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.java | 8 |
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"); |