blob: bb9e844e43dc1f82cee7e0b699ff51dfbd914c9d [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 Li60804322015-12-02 14:46:31 -080018import org.junit.Test;
Jian Li60804322015-12-02 14:46:31 -080019import org.onosproject.core.CoreServiceAdapter;
Jian Li72b9b122016-02-11 15:58:51 -080020import org.onosproject.cpman.impl.message.ControlMessageServiceAdaptor;
21import org.onosproject.cpman.impl.message.ControlPlaneMonitorServiceAdaptor;
Jian Li60804322015-12-02 14:46:31 -080022
23/**
24 * Set of tests of the ONOS application component.
25 */
26public class ControlPlaneManagerTest {
27
28 private ControlPlaneManager cpMan;
29
30 /**
31 * Sets up the services required by the CPMan application.
32 */
Jian Li72b9b122016-02-11 15:58:51 -080033 //@Before
Jian Li60804322015-12-02 14:46:31 -080034 public void setUp() {
35 cpMan = new ControlPlaneManager();
36 cpMan.coreService = new CoreServiceAdapter();
Jian Li72b9b122016-02-11 15:58:51 -080037 cpMan.messageService = new ControlMessageServiceAdaptor();
38 cpMan.monitorService = new ControlPlaneMonitorServiceAdaptor();
Jian Li60804322015-12-02 14:46:31 -080039 cpMan.activate();
40 }
41
42 /**
43 * Tears down the CPMan application.
44 */
Jian Li72b9b122016-02-11 15:58:51 -080045 //@After
Jian Li60804322015-12-02 14:46:31 -080046 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}