2 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
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
8 package org.opendaylight.netvirt.natservice.internal.test;
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;
15 public class NatUtilTest {
18 public void testFlowEntityBuilder() {
19 new FlowEntityBuilder()
20 .setDpnId(new BigInteger("123"))
21 .setTableId((short) 0)
27 public void testBuildFlowEntity1() {
28 NatUtil.buildFlowEntity(new BigInteger("123"), (short) 0, "ID");
32 public void testBuildFlowEntity2() {
33 NatUtil.buildFlowEntity(new BigInteger("123"), (short) 0, new BigInteger("789"), "ID");