Bug 8741: Fix broken Maven archetype
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / it / src / test / java / __packageInPathFormat__ / it / __classPrefix__IT.java
index 43ccdb8479e6b2e62ea6b34e631e48b2f2e7542e..23fb24d4e82f3008eae78ecaf79226d930705b61 100644 (file)
@@ -2,7 +2,7 @@
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
 /*
- * ${copyright} and others.  All rights reserved.
+ * Copyright © ${copyrightYear} ${copyright} and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -18,7 +18,6 @@ import org.junit.Assert;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase;
-import org.opendaylight.hello.HelloIT;
 import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.junit.PaxExam;
 import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
@@ -32,22 +31,12 @@ import org.slf4j.LoggerFactory;
 @ExamReactorStrategy(PerClass.class)
 public class ${classPrefix}IT extends AbstractMdsalTestBase {
     private static final Logger LOG = LoggerFactory.getLogger(${classPrefix}IT.class);
-    
-    @Override
-    public String getModuleName() {
-        return "${artifactId}";
-    }
-
-    @Override
-    public String getInstanceName() {
-        return "${artifactId}-default";
-    }
 
     @Override
     public MavenUrlReference getFeatureRepo() {
         return maven()
                 .groupId("${groupId}")
-                .artifactId("${artifactId}-features")
+                .artifactId("features-${artifactId}")
                 .classifier("features")
                 .type("xml")
                 .versionAsInProject();
@@ -55,9 +44,9 @@ public class ${classPrefix}IT extends AbstractMdsalTestBase {
 
     @Override
     public String getFeatureName() {
-        return "odl-${artifactId}-ui";
+        return "odl-${artifactId}-rest";
     }
-    
+
     @Override
     public Option getLoggingOption() {
         Option option = editConfigurationFilePut(ORG_OPS4J_PAX_LOGGING_CFG,
@@ -66,9 +55,9 @@ public class ${classPrefix}IT extends AbstractMdsalTestBase {
         option = composite(option, super.getLoggingOption());
         return option;
     }
-    
+
     @Test
     public void test${artifactId}FeatureLoad() {
         Assert.assertTrue(true);
     }
-}
\ No newline at end of file
+}