Fix Bug 3663: Update netvirt.impl UT
[netvirt.git] / openstack / net-virt / src / test / java / org / opendaylight / ovsdb / openstack / netvirt / NodeConfigurationTest.java
1 /*
2  * Copyright (c) 2015 Inocybe 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
9 package org.opendaylight.ovsdb.openstack.netvirt;
10
11 import static org.junit.Assert.assertEquals;
12 import static org.junit.Assert.assertNotNull;
13
14 import org.junit.Test;
15 import org.opendaylight.ovsdb.openstack.netvirt.api.Constants;
16
17 /**
18  * Unit test for {@link NodeConfiguration}
19  */
20 public class NodeConfigurationTest {
21
22     @Test
23     public void testNodeConfiguration() {
24         NodeConfiguration nodeConf = new NodeConfiguration();
25
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());
28     }
29 }