aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.java')
-rw-r--r--config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.java b/config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.java
index ee616f59d04..a19bc2347d4 100644
--- a/config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.java
+++ b/config-model/src/test/java/com/yahoo/config/model/builder/xml/XmlErrorHandlingTest.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.model.builder.xml;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.xml.sax.InputSource;
import java.io.FileReader;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author hmusum
@@ -13,24 +13,24 @@ import static org.junit.Assert.assertEquals;
public class XmlErrorHandlingTest {
@Test
- public void requireExceptionWithSourceAndFilenameAndLineNumber() {
+ void requireExceptionWithSourceAndFilenameAndLineNumber() {
try {
XmlHelper.getDocument(new FileReader("src/test/cfg/application/invalid-services-syntax/services.xml"), "services.xml");
} catch (Exception e) {
assertEquals("Invalid XML in services.xml: The element type \"config\" must be terminated by the matching end-tag \"</config>\". [7:5]",
- e.getMessage());
+ e.getMessage());
}
}
@Test
- public void requireExceptionWithLineNumber() {
+ void requireExceptionWithLineNumber() {
try {
XmlHelper.getDocumentBuilder().parse(
new InputSource(new FileReader("src/test/cfg/application/invalid-services-syntax/services.xml")));
} catch (Exception e) {
assertEquals("Invalid XML (unknown source): The element type \"config\" must be terminated by the matching end-tag \"</config>\". [7:5]",
- e.getMessage());
+ e.getMessage());
}
}