blob: 3fc66751128d2d2bba30c8a7a864ee8a018eaec7 [file] [log] [blame]
Jian Li60804322015-12-02 14:46:31 -08001/*
Jian Li6b86a762016-01-29 09:30:40 -08002 * Copyright 2016 Open Networking Laboratory
Jian Li60804322015-12-02 14:46:31 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Jian Li6b86a762016-01-29 09:30:40 -080016package org.onosproject.cpman.impl;
Jian Li60804322015-12-02 14:46:31 -080017
18import org.junit.After;
19import org.junit.Before;
20import org.junit.Test;
Jian Li60804322015-12-02 14:46:31 -080021import org.onosproject.core.CoreServiceAdapter;
22import org.onosproject.net.device.DeviceServiceAdapter;
23
24/**
25 * Set of tests of the ONOS application component.
26 */
27public class ControlPlaneManagerTest {
28
29 private ControlPlaneManager cpMan;
30
31 /**
32 * Sets up the services required by the CPMan application.
33 */
34 @Before
35 public void setUp() {
36 cpMan = new ControlPlaneManager();
37 cpMan.coreService = new CoreServiceAdapter();
38 cpMan.deviceService = new DeviceServiceAdapter();
Jian Li60804322015-12-02 14:46:31 -080039 cpMan.activate();
40 }
41
42 /**
43 * Tears down the CPMan application.
44 */
45 @After
46 public void tearDown() {
47 cpMan.deactivate();
48 }
49
50 /**
51 * Tests the control metric aggregating function.
52 *
53 * @throws Exception if metric collection fails.
54 */
55 @Test
56 public void testMetricsAggregation() throws Exception {
57 }
58
59 /**
60 * Tests the control metric collecting function.
61 *
62 * @throws Exception
63 */
64 @Test
65 public void testMetricsCollection() throws Exception {
66 }
Jian Li6b86a762016-01-29 09:30:40 -080067}