Update MRI upstreams for Phosphorus
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / device / DeviceStateImplTest.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, 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.openflowplugin.impl.device;
9
10 import org.junit.Assert;
11 import org.junit.Before;
12 import org.junit.Test;
13 import org.junit.runner.RunWith;
14 import org.mockito.junit.MockitoJUnitRunner;
15
16 /**
17  * openflowplugin-impl.org.opendaylight.openflowplugin.impl.device
18  * test of {@link DeviceStateImpl} - lightweight version, using basic ways (TDD).
19  */
20 @RunWith(MockitoJUnitRunner.class)
21 public class DeviceStateImplTest {
22     private DeviceStateImpl deviceState;
23
24     @Before
25     public void initialization() {
26         deviceState = new DeviceStateImpl();
27     }
28
29     @Test
30     public void testStatistics_initialValue() {
31         Assert.assertFalse(deviceState.isFlowStatisticsAvailable());
32         Assert.assertFalse(deviceState.isPortStatisticsAvailable());
33         Assert.assertFalse(deviceState.isQueueStatisticsAvailable());
34         Assert.assertFalse(deviceState.isTableStatisticsAvailable());
35     }
36
37     @Test
38     public void testMeterAndGroupAvailable_initialValue() {
39         Assert.assertFalse(deviceState.isGroupAvailable());
40         Assert.assertFalse(deviceState.isMetersAvailable());
41     }
42
43 }