Checkstyle enforcer
[controller.git] / opendaylight / sal / api / src / test / java / org / opendaylight / controller / sal / reader / FlowOnNodeTest.java
index 61f34aa63a479b0f6ac5d9b2457c1ae226efb21a..21377be8538ffe2e0594438df2c8e0afdb1418a3 100644 (file)
@@ -22,38 +22,38 @@ import org.opendaylight.controller.sal.reader.FlowOnNode;
 import org.opendaylight.controller.sal.utils.EtherTypes;
 import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
 import org.opendaylight.controller.sal.utils.NodeCreator;
-       
+
 public class FlowOnNodeTest {
 
-               @Test
-               public void testFlowOnNodeMethods () {
-               Match match = new Match();
-               NodeConnector inNC = NodeConnectorCreator.createNodeConnector((short)10, NodeCreator.createOFNode((long)10));
-               NodeConnector outNC = NodeConnectorCreator.createNodeConnector((short)20, NodeCreator.createOFNode((long)20));
-                       
-               match.setField(MatchType.DL_TYPE, EtherTypes.IPv4.shortValue());
-               match.setField(MatchType.IN_PORT, inNC);
-                       
-               Output output = new Output(outNC);
-               ArrayList<Action> action = new ArrayList<Action>();
-               action.add(output);
-                       
-               Flow flow = new Flow (match, action);
-               
-               FlowOnNode flowOnNode = new FlowOnNode (flow);
-       
-               Assert.assertTrue(flowOnNode.getFlow().equals(flow));
-               
-               flowOnNode.setPacketCount((long)100);
-               flowOnNode.setByteCount((long)800);
-               flowOnNode.setTableId((byte)0x55);
-               flowOnNode.setDurationNanoseconds(40);
-               flowOnNode.setDurationSeconds(45);
-                       
-               Assert.assertTrue(flowOnNode.getPacketCount() == 100);
-               Assert.assertTrue(flowOnNode.getByteCount() == 800);
-               Assert.assertTrue(flowOnNode.getDurationNanoseconds() == 40);
-               Assert.assertTrue(flowOnNode.getDurationSeconds() == 45);
-               Assert.assertTrue(flowOnNode.getTableId() == (byte)0x55);               
-       }
+                @Test
+                public void testFlowOnNodeMethods () {
+                Match match = new Match();
+                NodeConnector inNC = NodeConnectorCreator.createNodeConnector((short)10, NodeCreator.createOFNode((long)10));
+                NodeConnector outNC = NodeConnectorCreator.createNodeConnector((short)20, NodeCreator.createOFNode((long)20));
+
+                match.setField(MatchType.DL_TYPE, EtherTypes.IPv4.shortValue());
+                match.setField(MatchType.IN_PORT, inNC);
+
+                Output output = new Output(outNC);
+                ArrayList<Action> action = new ArrayList<Action>();
+                action.add(output);
+
+                Flow flow = new Flow (match, action);
+
+                FlowOnNode flowOnNode = new FlowOnNode (flow);
+
+                Assert.assertTrue(flowOnNode.getFlow().equals(flow));
+
+                flowOnNode.setPacketCount((long)100);
+                flowOnNode.setByteCount((long)800);
+                flowOnNode.setTableId((byte)0x55);
+                flowOnNode.setDurationNanoseconds(40);
+                flowOnNode.setDurationSeconds(45);
+
+                Assert.assertTrue(flowOnNode.getPacketCount() == 100);
+                Assert.assertTrue(flowOnNode.getByteCount() == 800);
+                Assert.assertTrue(flowOnNode.getDurationNanoseconds() == 40);
+                Assert.assertTrue(flowOnNode.getDurationSeconds() == 45);
+                Assert.assertTrue(flowOnNode.getTableId() == (byte)0x55);
+        }
 }
\ No newline at end of file