2 * Copyright (c) 2015 Cisco Systems, 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.openflowplugin.impl.device;
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;
17 * openflowplugin-impl.org.opendaylight.openflowplugin.impl.device
18 * test of {@link DeviceStateImpl} - lightweight version, using basic ways (TDD).
20 @RunWith(MockitoJUnitRunner.class)
21 public class DeviceStateImplTest {
22 private DeviceStateImpl deviceState;
25 public void initialization() {
26 deviceState = new DeviceStateImpl();
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());
38 public void testMeterAndGroupAvailable_initialValue() {
39 Assert.assertFalse(deviceState.isGroupAvailable());
40 Assert.assertFalse(deviceState.isMetersAvailable());