diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-28 14:58:52 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-28 14:58:52 +0200 |
commit | 147fa8c912c8748a9b4eb25c67420841363f3be0 (patch) | |
tree | be43054d6d5ec6ee4d01645678d0f411d3242d68 /jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java | |
parent | 695209a356ecae42536fd394189a98cf5274518e (diff) |
Convert jdisc_core to junit5
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java')
-rw-r--r-- | jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java index cf1fa62b102..4232b6ed087 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/core/ActiveContainerTestCase.java @@ -14,12 +14,13 @@ import com.yahoo.jdisc.test.TestDriver; import java.util.Iterator; import java.util.Map; -import org.junit.Test; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertSame; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertSame; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; /** * @author Simon Thoresen Hult @@ -27,7 +28,7 @@ import static org.junit.Assert.assertSame; public class ActiveContainerTestCase { @Test - public void requireThatGuiceAccessorWorks() { + void requireThatGuiceAccessorWorks() { final Object obj = new Object(); TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(new AbstractModule() { @@ -42,7 +43,7 @@ public class ActiveContainerTestCase { } @Test - public void requireThatServerAccessorWorks() { + void requireThatServerAccessorWorks() { TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(); ContainerBuilder builder = driver.newContainerBuilder(); ServerProvider foo = new NonWorkingServerProvider(); @@ -61,7 +62,7 @@ public class ActiveContainerTestCase { } @Test - public void requireThatServerBindingAccessorWorks() { + void requireThatServerBindingAccessorWorks() { TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(); ContainerBuilder builder = driver.newContainerBuilder(); RequestHandler foo = new NonWorkingRequestHandler(); @@ -103,7 +104,7 @@ public class ActiveContainerTestCase { } @Test - public void requireThatClientBindingAccessorWorks() { + void requireThatClientBindingAccessorWorks() { TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(); ContainerBuilder builder = driver.newContainerBuilder(); RequestHandler foo = new NonWorkingRequestHandler(); @@ -145,7 +146,7 @@ public class ActiveContainerTestCase { } @Test - public void requireThatDefaultBindingsAreAlwaysCreated() { + void requireThatDefaultBindingsAreAlwaysCreated() { TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(); ContainerBuilder builder = driver.newContainerBuilder(); ActiveContainer container = new ActiveContainer(builder); |