This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git


The following commit(s) were added to refs/heads/main by this push:
     new d01e63f2a fix(#774): fix camel-velocity integration test (#775)
d01e63f2a is described below

commit d01e63f2a56d370649992c1b5f152143f7965564
Author: François de Parscau <[email protected]>
AuthorDate: Tue Dec 1 10:33:48 2026 +0100

    fix(#774): fix camel-velocity integration test (#775)
    
    Move the test to src/test/java, drop the Blueprint hint (route comes from a
    DS supplier), remove the trailing newline from greeting.vm and fix the
    copy-pasted component name.
    
    Co-authored-by: Claude Sonnet 5.5 <[email protected]>
---
 .../java/org/apache/karaf/camel/test/CamelVelocityRouteSupplier.java    | 2 +-
 tests/features/camel-velocity/src/main/resources/greeting.vm            | 2 +-
 .../{test => java}/org/apache/karaf/camel/itest/CamelVelocityITest.java | 2 --
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/tests/features/camel-velocity/src/main/java/org/apache/karaf/camel/test/CamelVelocityRouteSupplier.java
 
b/tests/features/camel-velocity/src/main/java/org/apache/karaf/camel/test/CamelVelocityRouteSupplier.java
index 30ad987ae..f9502b3bc 100644
--- 
a/tests/features/camel-velocity/src/main/java/org/apache/karaf/camel/test/CamelVelocityRouteSupplier.java
+++ 
b/tests/features/camel-velocity/src/main/java/org/apache/karaf/camel/test/CamelVelocityRouteSupplier.java
@@ -25,7 +25,7 @@ import org.osgi.service.component.annotations.Component;
 import static org.apache.camel.builder.Builder.constant;
 
 @Component(
-        name = "karaf-camel-saxon-test",
+        name = "karaf-camel-velocity-test",
         immediate = true,
         service = CamelRouteSupplier.class
 )
diff --git a/tests/features/camel-velocity/src/main/resources/greeting.vm 
b/tests/features/camel-velocity/src/main/resources/greeting.vm
index d8a8ba607..cd4a60dc5 100644
--- a/tests/features/camel-velocity/src/main/resources/greeting.vm
+++ b/tests/features/camel-velocity/src/main/resources/greeting.vm
@@ -1 +1 @@
-${headers.greeting}, ${body}!
+${headers.greeting}, ${body}!
\ No newline at end of file
diff --git 
a/tests/features/camel-velocity/src/test/test/org/apache/karaf/camel/itest/CamelVelocityITest.java
 
b/tests/features/camel-velocity/src/test/java/org/apache/karaf/camel/itest/CamelVelocityITest.java
similarity index 92%
rename from 
tests/features/camel-velocity/src/test/test/org/apache/karaf/camel/itest/CamelVelocityITest.java
rename to 
tests/features/camel-velocity/src/test/java/org/apache/karaf/camel/itest/CamelVelocityITest.java
index 5857a491b..f1ff95d62 100644
--- 
a/tests/features/camel-velocity/src/test/test/org/apache/karaf/camel/itest/CamelVelocityITest.java
+++ 
b/tests/features/camel-velocity/src/test/java/org/apache/karaf/camel/itest/CamelVelocityITest.java
@@ -15,7 +15,6 @@ package org.apache.karaf.camel.itest;
 
 import org.apache.camel.component.mock.MockEndpoint;
 import 
org.apache.karaf.camel.itests.AbstractCamelSingleFeatureResultMockBasedRouteITest;
-import org.apache.karaf.camel.itests.CamelKarafTestHint;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.junit.PaxExam;
@@ -23,7 +22,6 @@ import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
 import org.ops4j.pax.exam.spi.reactors.PerClass;
 
 
-@CamelKarafTestHint(isBlueprintTest = true)
 @RunWith(PaxExam.class)
 @ExamReactorStrategy(PerClass.class)
 public class CamelVelocityITest extends 
AbstractCamelSingleFeatureResultMockBasedRouteITest {

Reply via email to