gnodet-bot commented on code in PR #30849:
URL: https://github.com/apache/camel/pull/30849#discussion_r4704771763
##########
test-infra/camel-test-infra-clickhouse/src/main/java/org/apache/camel/test/infra/clickhouse/services/ClickHouseInfraService.java:
##########
@@ -34,4 +34,26 @@ public interface ClickHouseInfraService extends
InfrastructureService {
String getPassword();
String getDatabaseName();
+
+ /**
+ * The serverUrl option of camel-clickhouse.
+ */
+ default String serverUrl() {
+ return getHttpUrl();
+ }
+
+ /**
+ * The database of camel-clickhouse.
+ */
+ default String database() {
+ return getDatabaseName();
+ }
+
+ default String username() {
Review Comment:
💡 **Nit:** Missing Javadoc — unlike `serverUrl()` and `database()` above
(both documenting which Camel option they represent), `username()` and
`password()` have no Javadoc. For consistency:
```suggestion
/**
* The username option of camel-clickhouse.
*/
default String username() {
```
##########
test-infra/camel-test-infra-clickhouse/src/main/java/org/apache/camel/test/infra/clickhouse/services/ClickHouseInfraService.java:
##########
@@ -34,4 +34,26 @@ public interface ClickHouseInfraService extends
InfrastructureService {
String getPassword();
String getDatabaseName();
+
+ /**
+ * The serverUrl option of camel-clickhouse.
+ */
+ default String serverUrl() {
+ return getHttpUrl();
+ }
+
+ /**
+ * The database of camel-clickhouse.
+ */
+ default String database() {
+ return getDatabaseName();
+ }
+
+ default String username() {
+ return getUsername();
+ }
+
+ default String password() {
Review Comment:
💡 **Nit:** Missing Javadoc.
```suggestion
/**
* The password option of camel-clickhouse.
*/
default String password() {
```
##########
test-infra/camel-test-infra-neo4j/src/main/java/org/apache/camel/test/infra/neo4j/services/Neo4jInfraService.java:
##########
@@ -26,6 +26,21 @@ public interface Neo4jInfraService extends
InfrastructureService {
String getNeo4jDatabasePassword();
+ /**
+ * The databaseUrl option of camel-neo4j.
+ */
+ default String databaseUrl() {
+ return getNeo4jDatabaseUri();
+ }
+
+ default String username() {
Review Comment:
💡 **Nit:** Missing Javadoc — `databaseUrl()` above documents its Camel
option; same applies here.
```suggestion
/**
* The username option of camel-neo4j.
*/
default String username() {
```
##########
test-infra/camel-test-infra-weaviate/src/main/java/org/apache/camel/test/infra/weaviate/services/WeaviateInfraService.java:
##########
@@ -30,4 +30,23 @@ public interface WeaviateInfraService extends
InfrastructureService {
int getWeaviatePort();
int getWeaviateGrpcPort();
+
+ /**
+ * The host option of camel-weaviate: the host and the port of the HTTP
API.
+ */
+ default String host() {
+ return getWeaviateHost() + ":" + getWeaviatePort();
+ }
+
+ default String scheme() {
+ return "http";
+ }
+
+ default String grpcHost() {
+ return getWeaviateHost();
+ }
+
+ default int grpcPort() {
Review Comment:
💡 **Nit:** Missing Javadoc.
```suggestion
/**
* The grpcPort option of camel-weaviate.
*/
default int grpcPort() {
```
##########
test-infra/camel-test-infra-weaviate/src/main/java/org/apache/camel/test/infra/weaviate/services/WeaviateInfraService.java:
##########
@@ -30,4 +30,23 @@ public interface WeaviateInfraService extends
InfrastructureService {
int getWeaviatePort();
int getWeaviateGrpcPort();
+
+ /**
+ * The host option of camel-weaviate: the host and the port of the HTTP
API.
+ */
+ default String host() {
+ return getWeaviateHost() + ":" + getWeaviatePort();
+ }
+
+ default String scheme() {
+ return "http";
+ }
+
+ default String grpcHost() {
Review Comment:
💡 **Nit:** Missing Javadoc — `host()` and `scheme()` above have Javadoc;
`grpcHost()` and `grpcPort()` don't.
```suggestion
/**
* The grpcHost option of camel-weaviate.
*/
default String grpcHost() {
```
##########
test-infra/camel-test-infra-neo4j/src/main/java/org/apache/camel/test/infra/neo4j/services/Neo4jInfraService.java:
##########
@@ -26,6 +26,21 @@ public interface Neo4jInfraService extends
InfrastructureService {
String getNeo4jDatabasePassword();
+ /**
+ * The databaseUrl option of camel-neo4j.
+ */
+ default String databaseUrl() {
+ return getNeo4jDatabaseUri();
+ }
+
+ default String username() {
+ return getNeo4jDatabaseUser();
+ }
+
+ default String password() {
Review Comment:
💡 **Nit:** Missing Javadoc.
```suggestion
/**
* The password option of camel-neo4j.
*/
default String password() {
```
--
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]