Fix fileEncoding violations for checkstyle
[groupbasedpolicy.git] / neutron-vpp-mapper / src / test / java / org / opendaylight / groupbasedpolicy / neutron / vpp / mapper / hostconfigs / VppNodeListenerTest.java
index 12c1ec9f20e52bf4c30b11405f70f005a5585274..4fdcda6f454ea7761bc80a47bc7683ebb9559024 100644 (file)
@@ -1,57 +1,57 @@
-/*\r
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.\r
- * \r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.groupbasedpolicy.neutron.vpp.mapper.hostconfigs;\r
-\r
-import static org.junit.Assert.assertFalse;\r
-import static org.junit.Assert.assertTrue;\r
-\r
-import java.util.concurrent.ExecutionException;\r
-\r
-import org.junit.After;\r
-import org.junit.Before;\r
-import org.junit.Test;\r
-import org.opendaylight.groupbasedpolicy.neutron.vpp.mapper.SocketInfo;\r
-import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;\r
-import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;\r
-import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;\r
-import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;\r
-\r
-public class VppNodeListenerTest extends TestResources {\r
-\r
-    private TopologyId topologyId = new TopologyId("topology1");\r
-    private NodeId nodeId = new NodeId("node1");\r
-    private InstanceIdentifier<Node> nodeIid = createNodeIid(topologyId, nodeId);\r
-    private VppNodeListener vppNodeListener;\r
-\r
-    @Before\r
-    public void init() throws InterruptedException, ExecutionException {\r
-        String socketPath = "/tmp/";\r
-        String socketPrefix = "socket_";\r
-        setDataBroker();\r
-        vppNodeListener = new VppNodeListener(dataBroker, new SocketInfo(socketPath, socketPrefix));\r
-        writeTopologyNode(topologyId, nodeId);\r
-        writeRendererNode(createNodeIid(topologyId, nodeId));\r
-    }\r
-\r
-    @Test\r
-    public void writeDataTest() throws InterruptedException, ExecutionException {\r
-        assertTrue(readHostconfig(nodeId).isPresent());\r
-    }\r
-\r
-    @Test\r
-    public void deleteDataTest() throws InterruptedException, ExecutionException {\r
-        deleteRendererNode(nodeIid);\r
-        assertFalse(readHostconfig(nodeId).isPresent());\r
-    }\r
-\r
-    @After\r
-    public void after() {\r
-        vppNodeListener.close();\r
-    }\r
-}\r
+/*
+ * Copyright (c) 2016 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.groupbasedpolicy.neutron.vpp.mapper.hostconfigs;
+
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+import java.util.concurrent.ExecutionException;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.opendaylight.groupbasedpolicy.neutron.vpp.mapper.SocketInfo;
+import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
+import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
+import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
+import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
+
+public class VppNodeListenerTest extends TestResources {
+
+    private TopologyId topologyId = new TopologyId("topology1");
+    private NodeId nodeId = new NodeId("node1");
+    private InstanceIdentifier<Node> nodeIid = createNodeIid(topologyId, nodeId);
+    private VppNodeListener vppNodeListener;
+
+    @Before
+    public void init() throws InterruptedException, ExecutionException {
+        String socketPath = "/tmp/";
+        String socketPrefix = "socket_";
+        setDataBroker();
+        vppNodeListener = new VppNodeListener(dataBroker, new SocketInfo(socketPath, socketPrefix));
+        writeTopologyNode(topologyId, nodeId);
+        writeRendererNode(createNodeIid(topologyId, nodeId));
+    }
+
+    @Test
+    public void writeDataTest() throws InterruptedException, ExecutionException {
+        assertTrue(readHostconfig(nodeId).isPresent());
+    }
+
+    @Test
+    public void deleteDataTest() throws InterruptedException, ExecutionException {
+        deleteRendererNode(nodeIid);
+        assertFalse(readHostconfig(nodeId).isPresent());
+    }
+
+    @After
+    public void after() {
+        vppNodeListener.close();
+    }
+}