Lower verbosity of TransactionProxy logging
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / it / src / test / java / __packageInPathFormat__ / it / __classPrefix__IT.java
1 #set( $symbol_pound = '#' )
2 #set( $symbol_dollar = '$' )
3 #set( $symbol_escape = '\' )
4 /*
5  * Copyright © ${copyrightYear} ${copyright} and others.  All rights reserved.
6  *
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
10  */
11 package ${package}.it;
12
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;
16
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.ops4j.pax.exam.Option;
22 import org.ops4j.pax.exam.junit.PaxExam;
23 import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
24 import org.ops4j.pax.exam.options.MavenUrlReference;
25 import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
26 import org.ops4j.pax.exam.spi.reactors.PerClass;
27 import org.slf4j.Logger;
28 import org.slf4j.LoggerFactory;
29
30 @RunWith(PaxExam.class)
31 @ExamReactorStrategy(PerClass.class)
32 public class ${classPrefix}IT extends AbstractMdsalTestBase {
33     private static final Logger LOG = LoggerFactory.getLogger(${classPrefix}IT.class);
34
35     @Override
36     public MavenUrlReference getFeatureRepo() {
37         return maven()
38                 .groupId("${groupId}")
39                 .artifactId("features-${artifactId}")
40                 .classifier("features")
41                 .type("xml")
42                 .versionAsInProject();
43     }
44
45     @Override
46     public String getFeatureName() {
47         return "odl-${artifactId}-rest";
48     }
49
50     @Override
51     public Option getLoggingOption() {
52         Option option = editConfigurationFilePut(ORG_OPS4J_PAX_LOGGING_CFG,
53                 logConfiguration(${classPrefix}IT.class),
54                 LogLevel.INFO.name());
55         option = composite(option, super.getLoggingOption());
56         return option;
57     }
58
59     @Test
60     public void test${artifactId}FeatureLoad() {
61         Assert.assertTrue(true);
62     }
63 }