Fix build faliures due to OFPlugin checktyle fixes
[netvirt.git] / vpnservice / natservice / natservice-impl / src / test / java / org / opendaylight / netvirt / natservice / internal / test / NatUtilTest.java
1 /*
2  * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netvirt.natservice.internal.test;
9
10 import java.math.BigInteger;
11 import org.junit.Test;
12 import org.opendaylight.genius.mdsalutil.FlowEntityBuilder;
13 import org.opendaylight.netvirt.natservice.internal.NatUtil;
14
15 public class NatUtilTest {
16
17     @Test
18     public void testFlowEntityBuilder() {
19         new FlowEntityBuilder()
20                 .setDpnId(new BigInteger("123"))
21                 .setTableId((short) 0)
22                 .setFlowId("ID")
23                 .build();
24     }
25
26     @Test
27     public void testBuildFlowEntity1() {
28         NatUtil.buildFlowEntity(new BigInteger("123"), (short) 0, "ID");
29     }
30
31     @Test
32     public void testBuildFlowEntity2() {
33         NatUtil.buildFlowEntity(new BigInteger("123"), (short) 0, new BigInteger("789"), "ID");
34     }
35
36 }