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/ContainerTestCase.java | |
parent | 695209a356ecae42536fd394189a98cf5274518e (diff) |
Convert jdisc_core to junit5
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/ContainerTestCase.java')
-rw-r--r-- | jdisc_core/src/test/java/com/yahoo/jdisc/ContainerTestCase.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/ContainerTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/ContainerTestCase.java index 184f7b4d77d..2a4360be0d7 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/ContainerTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/ContainerTestCase.java @@ -4,12 +4,12 @@ package com.yahoo.jdisc; import com.google.inject.AbstractModule; import com.yahoo.jdisc.service.BindingSetNotFoundException; import com.yahoo.jdisc.test.TestDriver; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.net.URI; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertSame; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertSame; /** @@ -18,7 +18,7 @@ import static org.junit.Assert.assertSame; public class ContainerTestCase { @Test - public void requireThatNewRequestsReferenceSameSnapshot() throws Exception { + void requireThatNewRequestsReferenceSameSnapshot() throws Exception { TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(); driver.activateContainer(driver.newContainerBuilder()); Request foo = new Request(driver, URI.create("http://foo")); @@ -31,7 +31,7 @@ public class ContainerTestCase { } @Test - public void requireThatInjectionWorks() throws BindingSetNotFoundException { + void requireThatInjectionWorks() throws BindingSetNotFoundException { final Object foo = new Object(); TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi(new AbstractModule() { |