blob: 0267613c57c9c87fff0dc3b2662813538c5fee20 [file] [log] [blame]
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -08001#set( $symbol_pound = '#' )
2#set( $symbol_dollar = '$' )
3#set( $symbol_escape = '\' )
Thomas Vachuska7399e482014-12-01 21:27:42 -08004/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07005 * Copyright ${year}-present Open Networking Foundation
Thomas Vachuska7399e482014-12-01 21:27:42 -08006 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -080019package ${package};
Thomas Vachuska7399e482014-12-01 21:27:42 -080020
21import org.junit.After;
22import org.junit.Before;
23import org.junit.Test;
Thomas Vachuska821618f2019-03-30 10:43:28 -070024import org.onosproject.cfg.ComponentConfigService;
25import org.onosproject.cfg.ConfigProperty;
26
27import java.util.Set;
Thomas Vachuska7399e482014-12-01 21:27:42 -080028
29/**
30 * Set of tests of the ONOS application component.
31 */
32public class AppComponentTest {
33
34 private AppComponent component;
35
36 @Before
37 public void setUp() {
38 component = new AppComponent();
Thomas Vachuska821618f2019-03-30 10:43:28 -070039 component.cfgService = new TestComponentConfigService();
Thomas Vachuska7399e482014-12-01 21:27:42 -080040 component.activate();
Thomas Vachuska7399e482014-12-01 21:27:42 -080041 }
42
43 @After
44 public void tearDown() {
45 component.deactivate();
46 }
47
48 @Test
49 public void basics() {
50
51 }
52
Thomas Vachuska821618f2019-03-30 10:43:28 -070053 private class TestComponentConfigService implements ComponentConfigService {
54 @Override
55 public Set<String> getComponentNames() {
56 return null;
57 }
58
59 @Override
60 public void registerProperties(Class<?> componentClass) {
61
62 }
63
64 @Override
65 public void unregisterProperties(Class<?> componentClass, boolean clear) {
66
67 }
68
69 @Override
70 public Set<ConfigProperty> getProperties(String componentName) {
71 return null;
72 }
73
74 @Override
75 public void setProperty(String componentName, String name, String value) {
76
77 }
78
79 @Override
80 public void preSetProperty(String componentName, String name, String value) {
81
82 }
83
84 @Override
85 public void unsetProperty(String componentName, String name) {
86
87 }
88
89 @Override
90 public ConfigProperty getProperty(String componentName, String attribute) {
91 return null;
92 }
93 }
94
Brian O'Connorabafb502014-12-02 22:26:20 -080095}