2 * Copyright (c) 2015 Inocybe 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
9 package org.opendaylight.ovsdb.openstack.netvirt;
11 import static org.junit.Assert.assertEquals;
12 import static org.junit.Assert.assertNotNull;
14 import org.junit.Test;
15 import org.opendaylight.ovsdb.openstack.netvirt.api.Constants;
18 * Unit test for {@link NodeConfiguration}
20 public class NodeConfigurationTest {
23 public void testNodeConfiguration() {
24 NodeConfiguration nodeConf = new NodeConfiguration();
26 assertEquals("Error, did not populate the internal vlan queue correctly", Constants.MAX_VLAN - 1, nodeConf.getInternalVlans().size());
27 assertNotNull("Error, tenant vlan map has not been initialized", nodeConf.getTenantVlanMap());