Add UT for SouthboundMapper and SouthboundProvider
[netvirt.git] / openstack / net-virt-sfc / it / src / test / java / org / opendaylight / ovsdb / openstack / netvirt / sfc / NetvirtSfcIT.java
1 /*
2  * Copyright © 2015 Red Hat, 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 org.opendaylight.ovsdb.openstack.netvirt.sfc;
9
10 import static org.ops4j.pax.exam.CoreOptions.composite;
11 import static org.ops4j.pax.exam.CoreOptions.maven;
12 import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFilePut;
13
14 import org.junit.Assert;
15 import org.junit.Test;
16 import org.junit.runner.RunWith;
17 import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase;
18 import org.ops4j.pax.exam.Option;
19 import org.ops4j.pax.exam.junit.PaxExam;
20 import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
21 import org.ops4j.pax.exam.options.MavenUrlReference;
22 import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
23 import org.ops4j.pax.exam.spi.reactors.PerClass;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
26
27 @RunWith(PaxExam.class)
28 @ExamReactorStrategy(PerClass.class)
29 public class NetvirtSfcIT extends AbstractMdsalTestBase {
30     private static final Logger LOG = LoggerFactory.getLogger(NetvirtSfcIT.class);
31
32     @Override
33     public String getModuleName() {
34         return "netvirt-sfc";
35     }
36
37     @Override
38     public String getInstanceName() {
39         return "netvirt-sfc-default";
40     }
41
42     @Override
43     public MavenUrlReference getFeatureRepo() {
44         return maven()
45                 .groupId("org.opendaylight.ovsdb")
46                 .artifactId("openstack.net-virt-sfc-features")
47                 .classifier("features")
48                 .type("xml")
49                 .versionAsInProject();
50     }
51
52     @Override
53     public String getFeatureName() {
54         return "odl-ovsdb-sfc-ui";
55     }
56
57     @Override
58     public Option getLoggingOption() {
59         Option option = editConfigurationFilePut(ORG_OPS4J_PAX_LOGGING_CFG,
60                 logConfiguration(NetvirtSfcIT.class),
61                 LogLevel.INFO.name());
62         option = composite(option, super.getLoggingOption());
63         return option;
64     }
65
66     @Test
67     public void testnetvirtsfcFeatureLoad() {
68         Assert.assertTrue(true);
69     }
70 }