2 * Copyright 2018 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 import io.dropwizard.Application;
19 import io.dropwizard.setup.Bootstrap;
20 import io.dropwizard.setup.Environment;
21 import org.junit.Before;
22 import org.junit.Test;
24 public class SfcDriverTest {
28 public void setUp() throws Exception {
29 sfcDriver = new SfcDriver();
33 public void getName() throws Exception {
34 assert sfcDriver.getName() != null;
38 public void initialize() throws Exception {
39 Application<SfcDriverConfig> application = new Application<SfcDriverConfig>() {
41 public void run(SfcDriverConfig sfcDriverConfig, Environment environment) throws Exception {
42 System.out.println("Hallo onap!");
45 Bootstrap<SfcDriverConfig> bootstrap = new Bootstrap<>(application);
46 sfcDriver.initialize(bootstrap);