jamesnetherton commented on code in PR #4655:
URL: https://github.com/apache/camel-quarkus/pull/4655#discussion_r1136889516


##########
integration-tests/jdbc/pom.xml:
##########
@@ -40,6 +40,14 @@
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-log</artifactId>
         </dependency>
+        <dependency>

Review Comment:
   `camel-quarkus-bean-deployment` and `camel-quarkus-timer-deployment` 
dependencies need adding into the `virtualDependencies` profile.
   
   



##########
integration-tests/jdbc/src/test/java/org/apache/camel/quarkus/component/jdbc/CamelJdbcTest.java:
##########
@@ -114,8 +119,58 @@ void testHeadersFromSelectQuery() {
                 .and()
                 .body(not(containsString("CamelGeneratedColumns")))
                 .and()
-                .body(containsString("CamelJdbcRowCount=2"))
+                .body(containsString("CamelJdbcRowCount"))
                 .and()
                 .body(containsString("CamelJdbcColumnNames=[ID, SPECIES]"));
     }
+
+    @Test
+    void testNamedParameters() {
+        RestAssured.given()
+                .get("test/named-parameters/headers-as-parameters")
+                .then()
+                .body(containsString("{ID=1, SPECIES=Camelus dromedarius}"))
+                .and()
+                .body(containsString("{ID=2, SPECIES=Camelus bactrianus}"));
+    }
+
+    @Test
+    void testCamelJdbcParametersHeader() {
+        RestAssured.given()
+                .get("test/named-parameters/headers-as-parameters-map")
+                .then()
+                .body(containsString("{ID=2, SPECIES=Camelus bactrianus}"));
+    }
+
+    @Test
+    void testTimeIntervalDatabasePolling() {
+        RestAssured.given()
+                .contentType(ContentType.TEXT)
+                .body("insert into camelsGenerated (species) values ('Camelus 
status'), ('Camelus linus')")
+                .post("/test/execute");
+
+        await().atMost(20L, TimeUnit.SECONDS).pollDelay(10000, 
TimeUnit.MILLISECONDS).until(() -> {

Review Comment:
   Can we speed this up and poll every 500 milliseconds (or less)?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to