From 147fa8c912c8748a9b4eb25c67420841363f3be0 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Thu, 28 Jul 2022 14:58:52 +0200 Subject: Convert jdisc_core to junit5 --- .../java/com/yahoo/jdisc/core/ApplicationRestartTestCase.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/core/ApplicationRestartTestCase.java') diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/core/ApplicationRestartTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/core/ApplicationRestartTestCase.java index 941067ff27d..cf283fa3ae3 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/core/ApplicationRestartTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/core/ApplicationRestartTestCase.java @@ -11,7 +11,7 @@ import com.yahoo.jdisc.handler.CompletionHandler; import com.yahoo.jdisc.handler.ContentChannel; import com.yahoo.jdisc.handler.ResponseHandler; import com.yahoo.jdisc.test.NonWorkingOsgiFramework; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.net.URI; import java.nio.ByteBuffer; @@ -19,8 +19,8 @@ import java.util.Arrays; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; /** @@ -29,7 +29,7 @@ import static org.junit.Assert.assertTrue; public class ApplicationRestartTestCase { @Test - public void requireThatStopStartDoesNotBreakShutdown() throws Exception { + void requireThatStopStartDoesNotBreakShutdown() throws Exception { ApplicationLoader loader = newApplicationLoader(); loader.init(null, false); loader.start(); @@ -40,7 +40,7 @@ public class ApplicationRestartTestCase { } @Test - public void requireThatDestroyInitDoesNotBreakShutdown() throws Exception { + void requireThatDestroyInitDoesNotBreakShutdown() throws Exception { ApplicationLoader loader = newApplicationLoader(); loader.init(null, false); loader.start(); -- cgit v1.2.3