blob: cb666c211e9e8f48debef681f22ccf36bbc7985b [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
Jian Lif53d0b22016-02-12 18:01:25 -080018import org.junit.After;
19import org.junit.Before;
Jian Li60804322015-12-02 14:46:31 -080020import org.junit.Test;
Jian Li60804322015-12-02 14:46:31 -080021import org.onosproject.core.CoreServiceAdapter;
Jian Li72b9b122016-02-11 15:58:51 -080022import org.onosproject.cpman.impl.message.ControlMessageServiceAdaptor;
23import org.onosproject.cpman.impl.message.ControlPlaneMonitorServiceAdaptor;
Jian Li60804322015-12-02 14:46:31 -080024
25/**
26 * Set of tests of the ONOS application component.
27 */
28public class ControlPlaneManagerTest {
29
30 private ControlPlaneManager cpMan;
31
32 /**
33 * Sets up the services required by the CPMan application.
34 */
Jian Lif53d0b22016-02-12 18:01:25 -080035 @Before
Jian Li60804322015-12-02 14:46:31 -080036 public void setUp() {
37 cpMan = new ControlPlaneManager();
38 cpMan.coreService = new CoreServiceAdapter();
Jian Li72b9b122016-02-11 15:58:51 -080039 cpMan.messageService = new ControlMessageServiceAdaptor();
40 cpMan.monitorService = new ControlPlaneMonitorServiceAdaptor();
Jian Li60804322015-12-02 14:46:31 -080041 cpMan.activate();
42 }
43
44 /**
45 * Tears down the CPMan application.
46 */
Jian Lif53d0b22016-02-12 18:01:25 -080047 @After
Jian Li60804322015-12-02 14:46:31 -080048 public void tearDown() {
49 cpMan.deactivate();
50 }
51
52 /**
53 * Tests the control metric aggregating function.
54 *
55 * @throws Exception if metric collection fails.
56 */
57 @Test
58 public void testMetricsAggregation() throws Exception {
59 }
60
61 /**
62 * Tests the control metric collecting function.
63 *
64 * @throws Exception
65 */
66 @Test
67 public void testMetricsCollection() throws Exception {
68 }
Jian Li6b86a762016-01-29 09:30:40 -080069}