summaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-28 15:10:47 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-28 15:10:47 +0200
commit9bf664ba9a153a404f03c39d5ba0f99eb32c4419 (patch)
tree1eeda1293a2d453c9acd11deb736be4e53e58975 /container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java
parent147fa8c912c8748a9b4eb25c67420841363f3be0 (diff)
Convert container-core to junit5
Diffstat (limited to 'container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java')
-rw-r--r--container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java b/container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java
index 36217012fb0..41d80d16c54 100644
--- a/container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java
+++ b/container-core/src/test/java/com/yahoo/jdisc/http/filter/JDiscCookieWrapperTest.java
@@ -2,15 +2,16 @@
package com.yahoo.jdisc.http.filter;
import com.yahoo.jdisc.http.Cookie;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import java.util.concurrent.TimeUnit;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
public class JDiscCookieWrapperTest {
@Test
- public void requireThatWrapWorks() {
+ void requireThatWrapWorks() {
Cookie cookie = new Cookie("name", "value");
JDiscCookieWrapper wrapper = JDiscCookieWrapper.wrap(cookie);
@@ -18,12 +19,12 @@ public class JDiscCookieWrapperTest {
wrapper.setMaxAge(10);
wrapper.setPath("/path");
- Assert.assertEquals(wrapper.getName(), cookie.getName());
- Assert.assertEquals(wrapper.getValue(), cookie.getValue());
- Assert.assertEquals(wrapper.getDomain(), cookie.getDomain());
- Assert.assertEquals(wrapper.getMaxAge(), cookie.getMaxAge(TimeUnit.SECONDS));
- Assert.assertEquals(wrapper.getPath(), cookie.getPath());
- Assert.assertEquals(wrapper.getSecure(), cookie.isSecure());
+ assertEquals(wrapper.getName(), cookie.getName());
+ assertEquals(wrapper.getValue(), cookie.getValue());
+ assertEquals(wrapper.getDomain(), cookie.getDomain());
+ assertEquals(wrapper.getMaxAge(), cookie.getMaxAge(TimeUnit.SECONDS));
+ assertEquals(wrapper.getPath(), cookie.getPath());
+ assertEquals(wrapper.getSecure(), cookie.isSecure());
}
}