Exception for URI /restconf/operations/module_name:rpc ended with slash
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / test / java / org / opendaylight / controller / sal / connector / remoterpc / RouteIdentifierImplTest.java
index 550d9ef125c39551699a538477e50ed001d8e78c..468d7829c43a63547ee0c464fe8ed6cdb110faed 100644 (file)
@@ -1,15 +1,23 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * This program and the accompanying materials are made available under the
+ * 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.controller.sal.connector.remoterpc;
 
-import org.codehaus.jackson.JsonParseException;
+import java.net.URI;
+
+import com.fasterxml.jackson.core.JsonParseException;
 import org.junit.Assert;
 import org.junit.Test;
+import org.opendaylight.controller.sal.connector.api.RpcRouter;
 import org.opendaylight.controller.sal.connector.remoterpc.dto.RouteIdentifierImpl;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.net.URI;
-
 public class RouteIdentifierImplTest {
 
   Logger _logger = LoggerFactory.getLogger(RouteIdentifierImplTest.class);
@@ -33,7 +41,11 @@ public class RouteIdentifierImplTest {
     RouteIdentifierImpl rId = new RouteIdentifierImpl();
     rId.setType(QNAME);
 
-    _logger.debug("route: " + rId.fromString(rId.toString()));
+    String s = rId.toString();
+    _logger.debug("serialized route: {}", s);
+
+    RpcRouter.RouteIdentifier ref = new RouteIdentifierImpl().fromString(s);
+    _logger.debug("deserialized route: {}", ref);
 
     Assert.assertTrue(true);
   }