This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 4b3bd812e2 Fix Windows invalid character warnings for AWS tests
4b3bd812e2 is described below
commit 4b3bd812e2eb94f78dda99a1b5180471a78fa2c7
Author: James Netherton <[email protected]>
AuthorDate: Tue Sep 22 12:25:38 2026 +0100
Fix Windows invalid character warnings for AWS tests
---
.../org/apache/camel/quarkus/component/aws2/kms/it/Aws2KmsTest.java | 4 ++--
tooling/scripts/group-test-utils.groovy | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/integration-test-groups/aws2/aws2-kms/src/test/java/org/apache/camel/quarkus/component/aws2/kms/it/Aws2KmsTest.java
b/integration-test-groups/aws2/aws2-kms/src/test/java/org/apache/camel/quarkus/component/aws2/kms/it/Aws2KmsTest.java
index fc38125ab2..bd1f77b8f7 100644
---
a/integration-test-groups/aws2/aws2-kms/src/test/java/org/apache/camel/quarkus/component/aws2/kms/it/Aws2KmsTest.java
+++
b/integration-test-groups/aws2/aws2-kms/src/test/java/org/apache/camel/quarkus/component/aws2/kms/it/Aws2KmsTest.java
@@ -57,14 +57,14 @@ class Aws2KmsTest extends BaseAWs2TestSupport {
.asString();
try {
- // describeKey via the Camel route — newly created keys start
enabled
+ // describeKey via the Camel route - newly created keys start
enabled
given()
.get("/aws2-kms/keys/" + keyId)
.then()
.statusCode(200)
.body(matchesPattern(KeyState.ENABLED.toString()));
- // listKeys — the new key must be visible
+ // listKeys - the new key must be visible
given()
.get("/aws2-kms/keys")
.then()
diff --git a/tooling/scripts/group-test-utils.groovy
b/tooling/scripts/group-test-utils.groovy
index 2c4663d13c..41663770c8 100644
--- a/tooling/scripts/group-test-utils.groovy
+++ b/tooling/scripts/group-test-utils.groovy
@@ -23,7 +23,7 @@ def makeTestClassNamesUnique(File sourceDir, String
classNamePrefix) {
String className = originalName.replace(".java", "")
String newClassName = "${classNamePrefix}${className}"
- String content = file.text
+ String content = file.getText('UTF-8')
// Save @QuarkusTestResource annotations
def annotations = []
@@ -46,7 +46,7 @@ def makeTestClassNamesUnique(File sourceDir, String
classNamePrefix) {
content = content.replace("___PLACEHOLDER_${i}___",
annotation)
}
- file.write(content)
+ file.write(content, 'UTF-8')
String path = file.absolutePath.replace(originalName,
"${classNamePrefix}${originalName}")
file.renameTo(path)