Update test to be more careful and add logs
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / test / java / org / opendaylight / controller / sal / connector / remoterpc / RouteIdentifierImplTest.java
index f6b9004eae3139a17773688eba17a528fb5d1ae0..468d7829c43a63547ee0c464fe8ed6cdb110faed 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * 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 java.net.URI;
@@ -5,6 +12,7 @@ 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;
@@ -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);
   }