Servicehandler Tests
[transportpce.git] / it / src / test / java / org / opendaylight / transportpce / it / TransportpceIT.java
1 /*
2  * Copyright © 2016 Orange 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.transportpce.it;
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 TransportpceIT extends AbstractMdsalTestBase {
30     private static final Logger LOG = LoggerFactory.getLogger(TransportpceIT.class);
31
32     @Override
33     public MavenUrlReference getFeatureRepo() {
34         return maven()
35                 .groupId("org.opendaylight.transportpce")
36                 .artifactId("transportpce-features")
37                 .classifier("features")
38                 .type("xml")
39                 .versionAsInProject();
40     }
41
42     @Override
43     public String getFeatureName() {
44         return "odl-transportpce-ui";
45     }
46
47     @Override
48     public Option getLoggingOption() {
49         Option option = editConfigurationFilePut(ORG_OPS4J_PAX_LOGGING_CFG,
50                 logConfiguration(TransportpceIT.class),
51                 LogLevel.INFO.name());
52         option = composite(option, super.getLoggingOption());
53         return option;
54     }
55
56     @Test
57     public void testtransportpceFeatureLoad() {
58         Assert.assertTrue(true);
59     }
60 }