Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame^] | 2 | * Copyright 2016-present Open Networking Foundation |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 3 | * |
| 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 Li | 6b86a76 | 2016-01-29 09:30:40 -0800 | [diff] [blame] | 16 | package org.onosproject.cpman.impl; |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 17 | |
Jian Li | f53d0b2 | 2016-02-12 18:01:25 -0800 | [diff] [blame] | 18 | import org.junit.After; |
| 19 | import org.junit.Before; |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 20 | import org.junit.Test; |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 21 | import org.onosproject.core.CoreServiceAdapter; |
Jian Li | 72b9b12 | 2016-02-11 15:58:51 -0800 | [diff] [blame] | 22 | import org.onosproject.cpman.impl.message.ControlMessageServiceAdaptor; |
| 23 | import org.onosproject.cpman.impl.message.ControlPlaneMonitorServiceAdaptor; |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 24 | |
| 25 | /** |
| 26 | * Set of tests of the ONOS application component. |
| 27 | */ |
| 28 | public class ControlPlaneManagerTest { |
| 29 | |
| 30 | private ControlPlaneManager cpMan; |
| 31 | |
| 32 | /** |
| 33 | * Sets up the services required by the CPMan application. |
| 34 | */ |
Jian Li | f53d0b2 | 2016-02-12 18:01:25 -0800 | [diff] [blame] | 35 | @Before |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 36 | public void setUp() { |
| 37 | cpMan = new ControlPlaneManager(); |
| 38 | cpMan.coreService = new CoreServiceAdapter(); |
Jian Li | 72b9b12 | 2016-02-11 15:58:51 -0800 | [diff] [blame] | 39 | cpMan.messageService = new ControlMessageServiceAdaptor(); |
| 40 | cpMan.monitorService = new ControlPlaneMonitorServiceAdaptor(); |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 41 | cpMan.activate(); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Tears down the CPMan application. |
| 46 | */ |
Jian Li | f53d0b2 | 2016-02-12 18:01:25 -0800 | [diff] [blame] | 47 | @After |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 48 | 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 Li | 6b86a76 | 2016-01-29 09:30:40 -0800 | [diff] [blame] | 69 | } |