Migrate yang-xpath-impl to JUnit5 69/101369/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 May 2022 16:52:49 +0000 (18:52 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 30 May 2022 17:15:38 +0000 (19:15 +0200)
We have only a single test, migrate it.

Change-Id: I046473eb56ff3f6869c96d169aab74bd605bbe9b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
xpath/yang-xpath-impl/src/test/java/org/opendaylight/yangtools/yang/xpath/impl/XPathParserTest.java

index 0942340023f53909a46b965c7d74fa4eba33c596..c5a4c9ef61acdecf85af55e801697d2c2f5e1ae3 100644 (file)
@@ -9,14 +9,14 @@ package org.opendaylight.yangtools.yang.xpath.impl;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.isA;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import com.google.common.collect.ImmutableBiMap;
 import java.util.List;
 import javax.xml.xpath.XPathExpressionException;
 import org.eclipse.jdt.annotation.Nullable;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
 import org.opendaylight.yangtools.yang.common.BiMapYangNamespaceContext;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.QNameModule;
@@ -41,7 +41,7 @@ public class XPathParserTest {
 
     private @Nullable AntlrXPathParser parser;
 
-    @Before
+    @BeforeEach
     public void before() {
         parser = new AntlrXPathParser.Unqualified(YangXPathMathMode.IEEE754, CONTEXT, DEFNS);
     }