1 #set( $symbol_pound = '#' )
2 #set( $symbol_dollar = '$' )
3 #set( $symbol_escape = '\' )
5 * ${copyright} and others. All rights reserved.
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
9 * and is available at http://www.eclipse.org/legal/epl-v10.html
11 package ${package}.it;
13 import static org.ops4j.pax.exam.CoreOptions.composite;
14 import static org.ops4j.pax.exam.CoreOptions.maven;
15 import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFilePut;
17 import org.junit.Assert;
18 import org.junit.Test;
19 import org.junit.runner.RunWith;
20 import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase;
21 import org.opendaylight.hello.HelloIT;
22 import org.ops4j.pax.exam.Option;
23 import org.ops4j.pax.exam.junit.PaxExam;
24 import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
25 import org.ops4j.pax.exam.options.MavenUrlReference;
26 import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
27 import org.ops4j.pax.exam.spi.reactors.PerClass;
28 import org.slf4j.Logger;
29 import org.slf4j.LoggerFactory;
31 @RunWith(PaxExam.class)
32 @ExamReactorStrategy(PerClass.class)
33 public class ${classPrefix}IT extends AbstractMdsalTestBase {
34 private static final Logger LOG = LoggerFactory.getLogger(${classPrefix}IT.class);
37 public String getModuleName() {
38 return "${artifactId}";
42 public String getInstanceName() {
43 return "${artifactId}-default";
47 public MavenUrlReference getFeatureRepo() {
49 .groupId("${groupId}")
50 .artifactId("${artifactId}-features")
51 .classifier("features")
53 .versionAsInProject();
57 public String getFeatureName() {
58 return "odl-${artifactId}-ui";
62 public Option getLoggingOption() {
63 Option option = editConfigurationFilePut(ORG_OPS4J_PAX_LOGGING_CFG,
64 logConfiguration(${classPrefix}IT.class),
65 LogLevel.INFO.name());
66 option = composite(option, super.getLoggingOption());
71 public void test${artifactId}FeatureLoad() {
72 Assert.assertTrue(true);