summaryrefslogtreecommitdiffstats
path: root/node-admin/src
diff options
context:
space:
mode:
Diffstat (limited to 'node-admin/src')
-rw-r--r--node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java
index bbe96272b4b..5d96787214a 100644
--- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java
+++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java
@@ -4,7 +4,6 @@ package com.yahoo.vespa.hosted.node.admin.task.util.file;
import com.yahoo.vespa.test.file.TestFileSystem;
import org.junit.jupiter.api.Test;
-import org.opentest4j.AssertionFailedError;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystem;
@@ -173,7 +172,7 @@ public class UnixPathTest {
assertEquals("bar", absolutePath.getFilename());
var pathWithoutSlash = new UnixPath("foo");
- assertRuntimeException(IllegalStateException.class, "Path has no parent directory: 'foo'", () -> pathWithoutSlash.getParent());
+ assertRuntimeException(IllegalStateException.class, "Path has no parent directory: 'foo'", pathWithoutSlash::getParent);
assertEquals("foo", pathWithoutSlash.getFilename());
var pathWithSlash = new UnixPath("/foo");
@@ -190,7 +189,7 @@ public class UnixPathTest {
fail("No exception was thrown");
} catch (RuntimeException e) {
if (!baseClass.isInstance(e)) {
- throw new AssertionFailedError("Exception class mismatch", baseClass.getName(), e.getClass().getName());
+ fail("Exception class mismatch " + baseClass.getName() + " != " + e.getClass().getName());
}
assertEquals(message, e.getMessage());