summaryrefslogtreecommitdiffstats
path: root/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-29 14:41:04 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-29 14:41:04 +0200
commitd2d48d2518be19a15d214c6c2fb72fa0cec9ac52 (patch)
tree5c891dccb2676076d389f1e077ded04bf840421a /config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
parent3ba4caa0d60627e9b4d1a593445860f138f72fee (diff)
Convert config-lib to junit5
Diffstat (limited to 'config-lib/src/test/java/com/yahoo/config/FileNodeTest.java')
-rw-r--r--config-lib/src/test/java/com/yahoo/config/FileNodeTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java b/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
index 42e4978091d..8bec9378f8f 100644
--- a/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
+++ b/config-lib/src/test/java/com/yahoo/config/FileNodeTest.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.config;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThrows;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Ulf Lilleengen
@@ -14,7 +14,7 @@ import static org.junit.Assert.assertTrue;
public class FileNodeTest {
@Test
- public void testSetValue() {
+ void testSetValue() {
FileNode n = new FileNode();
assertEquals("(null)", n.toString());
assertTrue(n.doSetValue("foo.txt"));
@@ -24,7 +24,7 @@ public class FileNodeTest {
assertEquals("\"foo.txt\"", n.toString());
assertEquals("path may not start with '..', but got: foo/../../boo",
- assertThrows(IllegalArgumentException.class, () -> new FileNode("foo/../../boo")).getMessage());
+ assertThrows(IllegalArgumentException.class, () -> new FileNode("foo/../../boo")).getMessage());
}
}