Add missing license headers
[openflowplugin.git] / applications / statistics-manager / src / test / java / test / mock / util / BundleContextMock.java
1 /*
2  * Copyright (c) 2014, 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package test.mock.util;
9
10 import org.osgi.framework.Bundle;
11 import org.osgi.framework.BundleContext;
12 import org.osgi.framework.BundleException;
13 import org.osgi.framework.BundleListener;
14 import org.osgi.framework.Filter;
15 import org.osgi.framework.FrameworkListener;
16 import org.osgi.framework.InvalidSyntaxException;
17 import org.osgi.framework.ServiceListener;
18 import org.osgi.framework.ServiceReference;
19 import org.osgi.framework.ServiceRegistration;
20
21 import java.io.File;
22 import java.io.InputStream;
23 import java.util.Collection;
24 import java.util.Dictionary;
25
26 public class BundleContextMock implements BundleContext {
27     @Override
28     public String getProperty(String s) {
29         return null;
30     }
31
32     @Override
33     public Bundle getBundle() {
34         return null;
35     }
36
37     @Override
38     public Bundle installBundle(String s, InputStream inputStream) throws BundleException {
39         return null;
40     }
41
42     @Override
43     public Bundle installBundle(String s) throws BundleException {
44         return null;
45     }
46
47     @Override
48     public Bundle getBundle(long l) {
49         return null;
50     }
51
52     @Override
53     public Bundle[] getBundles() {
54         return new Bundle[0];
55     }
56
57     @Override
58     public void addServiceListener(ServiceListener serviceListener, String s) throws InvalidSyntaxException {
59
60     }
61
62     @Override
63     public void addServiceListener(ServiceListener serviceListener) {
64
65     }
66
67     @Override
68     public void removeServiceListener(ServiceListener serviceListener) {
69
70     }
71
72     @Override
73     public void addBundleListener(BundleListener bundleListener) {
74
75     }
76
77     @Override
78     public void removeBundleListener(BundleListener bundleListener) {
79
80     }
81
82     @Override
83     public void addFrameworkListener(FrameworkListener frameworkListener) {
84
85     }
86
87     @Override
88     public void removeFrameworkListener(FrameworkListener frameworkListener) {
89
90     }
91
92     @Override
93     public ServiceRegistration<?> registerService(String[] strings, Object o, Dictionary<String, ?> stringDictionary) {
94         return null;
95     }
96
97     @Override
98     public ServiceRegistration<?> registerService(String s, Object o, Dictionary<String, ?> stringDictionary) {
99         return null;
100     }
101
102     @Override
103     public <S> ServiceRegistration<S> registerService(Class<S> sClass, S s, Dictionary<String, ?> stringDictionary) {
104         return null;
105     }
106
107     @Override
108     public ServiceReference<?>[] getServiceReferences(String s, String s2) throws InvalidSyntaxException {
109         return new ServiceReference<?>[0];
110     }
111
112     @Override
113     public ServiceReference<?>[] getAllServiceReferences(String s, String s2) throws InvalidSyntaxException {
114         return new ServiceReference<?>[0];
115     }
116
117     @Override
118     public ServiceReference<?> getServiceReference(String s) {
119         return null;
120     }
121
122     @Override
123     public <S> ServiceReference<S> getServiceReference(Class<S> sClass) {
124         return null;
125     }
126
127     @Override
128     public <S> Collection<ServiceReference<S>> getServiceReferences(Class<S> sClass, String s) throws InvalidSyntaxException {
129         return null;
130     }
131
132     @Override
133     public <S> S getService(ServiceReference<S> sServiceReference) {
134         return null;
135     }
136
137     @Override
138     public boolean ungetService(ServiceReference<?> serviceReference) {
139         return false;
140     }
141
142     @Override
143     public File getDataFile(String s) {
144         return null;
145     }
146
147     @Override
148     public Filter createFilter(String s) throws InvalidSyntaxException {
149         return null;
150     }
151
152     @Override
153     public Bundle getBundle(String s) {
154         return null;
155     }
156 }