Bug 6325 - upgrade draft11 to draft15 - renaming
[netconf.git] / restconf / sal-rest-connector / src / test / java / org / opendaylight / restconf / rest / services / impl / RestconfModulesServiceTestUtils.java
index 34310909149ccfcee89e61294c9fab60e6ca47b3..2d9d4a33d076fc3edc228d8faab69d76dc2dfa7c 100644 (file)
@@ -30,7 +30,7 @@ import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
 import org.opendaylight.controller.md.sal.dom.broker.impl.mount.DOMMountPointServiceImpl;
 import org.opendaylight.controller.md.sal.dom.broker.spi.mount.SimpleDOMMountPoint;
 import org.opendaylight.controller.md.sal.rest.common.TestRestconfUtils;
-import org.opendaylight.restconf.Draft11;
+import org.opendaylight.restconf.Draft15;
 import org.opendaylight.restconf.handlers.DOMMountPointServiceHandler;
 import org.opendaylight.restconf.handlers.SchemaContextHandler;
 import org.opendaylight.restconf.utils.RestconfConstants;
@@ -48,8 +48,8 @@ import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.YangStatementSourceIm
 import org.opendaylight.yangtools.yang.parser.util.NamedFileInputStream;
 
 class RestconfModulesServiceTestUtils {
-    static final String MOUNT_POINT = "/mount-point-1:cont/" + RestconfConstants.MOUNT + "/";
-    static final String NOT_REGISTERED_MOUNT_POINT = "/mount-point-1:listA/" + RestconfConstants.MOUNT + "/";
+    static final String MOUNT_POINT = "mount-point-1:cont/" + RestconfConstants.MOUNT + "/";
+    static final String NOT_REGISTERED_MOUNT_POINT = "mount-point-1:listA/" + RestconfConstants.MOUNT + "/";
 
     static final String TEST_MODULE = "module1/2014-01-01";
     static final String NOT_EXISTING_MODULE = "not-existing/2016-01-01";
@@ -194,8 +194,8 @@ class RestconfModulesServiceTestUtils {
 
         when(schemaContext.findModuleByNamespaceAndRevision(any(URI.class), any(Date.class))).thenAnswer(invocation -> {
             final Object[] args = invocation.getArguments();
-            if (args[0] == Draft11.RestconfModule.IETF_RESTCONF_QNAME.getNamespace()
-                    && args[1] == Draft11.RestconfModule.IETF_RESTCONF_QNAME.getRevision()) {
+            if (args[0] == Draft15.RestconfModule.IETF_RESTCONF_QNAME.getNamespace()
+                    && args[1] == Draft15.RestconfModule.IETF_RESTCONF_QNAME.getRevision()) {
                 return parseCustomRestconfSource(restconfModuleName).findModuleByName(
                         restconfModuleName, (Date) args[1]);
             } else {