Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 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 | */ |
| 16 | package org.onosproject.cpman; |
| 17 | |
| 18 | import org.junit.After; |
| 19 | import org.junit.Before; |
| 20 | import org.junit.Test; |
| 21 | import org.onlab.metrics.MetricsServiceAdapter; |
| 22 | import org.onosproject.core.CoreServiceAdapter; |
| 23 | import org.onosproject.net.device.DeviceServiceAdapter; |
| 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 | */ |
| 35 | @Before |
| 36 | public void setUp() { |
| 37 | cpMan = new ControlPlaneManager(); |
| 38 | cpMan.coreService = new CoreServiceAdapter(); |
| 39 | cpMan.deviceService = new DeviceServiceAdapter(); |
| 40 | cpMan.metricsService = new MetricsServiceAdapter(); |
| 41 | cpMan.activate(); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Tears down the CPMan application. |
| 46 | */ |
| 47 | @After |
| 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 | } |
| 69 | } |