Move ErrorTagsTest 27/112727/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Jul 2024 13:38:23 +0000 (15:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Jul 2024 15:11:07 +0000 (17:11 +0200)
This this really should be called ErrorTagMappingTest and live in
restconf-server-spi. Rename/move it.

JIRA: NETCONF-773
Change-Id: I0c478241d65e2321748f1912dad8513339ab189f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/restconf-server-spi/src/test/java/org/opendaylight/restconf/server/spi/ErrorTagMappingTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/ErrorTagsTest.java with 93% similarity]

similarity index 93%
rename from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/ErrorTagsTest.java
rename to protocol/restconf-server-spi/src/test/java/org/opendaylight/restconf/server/spi/ErrorTagMappingTest.java
index bdb9537e41e758993aa8241f7b7a915e07ff1425..b392ddf435fcefaf8ea34aa19d9e48d832ef0ab7 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.restconf.nb.rfc8040;
+package org.opendaylight.restconf.server.spi;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 
@@ -14,10 +14,9 @@ import org.eclipse.jdt.annotation.NonNull;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
-import org.opendaylight.restconf.server.spi.ErrorTagMapping;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
 
-class ErrorTagsTest {
+class ErrorTagMappingTest {
     @ParameterizedTest(name = "{0} => {1}")
     @MethodSource
     void testStatusOf(final @NonNull String tagName, final int status) {