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

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


The following commit(s) were added to refs/heads/main by this push:
     new e7a99797f2a CAMEL-20367: Adds camel doc test (#17350)
e7a99797f2a is described below

commit e7a99797f2acf4a6e8bce62387baf87c517017b4
Author: Jakub Vrubel <[email protected]>
AuthorDate: Tue Mar 4 12:19:19 2025 +0100

    CAMEL-20367: Adds camel doc test (#17350)
---
 .../apache/camel/dsl/jbang/it/CamelDocITCase.java  | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CamelDocITCase.java
 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CamelDocITCase.java
new file mode 100644
index 00000000000..a2462ff248b
--- /dev/null
+++ 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CamelDocITCase.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dsl.jbang.it;
+
+import org.apache.camel.dsl.jbang.it.support.JBangTestSupport;
+import org.junit.jupiter.api.Test;
+
+public class CamelDocITCase extends JBangTestSupport {
+    @Test
+    public void testDisplayComponent() {
+        checkCommandOutputs("doc kafka", "Component Name: kafka");
+    }
+
+    @Test
+    public void testDisplayDataformat() {
+        checkCommandOutputs("doc dataformat:thrift", "Dataformat Name: 
thrift");
+        checkCommandDoesNotOutput("doc dataformat:thrift", "Component Name: 
thrift");
+    }
+}

Reply via email to