diff --git a/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/lang/SubstitutorProducer.java b/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/lang/SubstitutorProducer.java index 6f051e62..5539eb6c 100644 --- a/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/lang/SubstitutorProducer.java +++ b/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/lang/SubstitutorProducer.java @@ -178,7 +178,7 @@ protected String doSubstitute(final AtomicReference self, final Con } } if (placeholder.startsWith("bundlebee-uppercase:")) { - return placeholder.substring("bundlebee-uppercase:".length()).toLowerCase(ROOT); + return placeholder.substring("bundlebee-uppercase:".length()).toUpperCase(ROOT); } if (placeholder.startsWith("bundlebee-lowercase:")) { return placeholder.substring("bundlebee-lowercase:".length()).toLowerCase(ROOT); diff --git a/bundlebee-core/src/test/java/io/yupiik/bundlebee/core/lang/SubstitutorProducerTest.java b/bundlebee-core/src/test/java/io/yupiik/bundlebee/core/lang/SubstitutorProducerTest.java index efe27ac2..5090de16 100644 --- a/bundlebee-core/src/test/java/io/yupiik/bundlebee/core/lang/SubstitutorProducerTest.java +++ b/bundlebee-core/src/test/java/io/yupiik/bundlebee/core/lang/SubstitutorProducerTest.java @@ -93,6 +93,13 @@ public Event select(final TypeLiteral subtype, f } } + @Test + void uppercase() { + assertEquals( + "UP", + substitutor.getOrDefault("bundlebee-uppercase:up", "failed")); + } + @Test void digest() { assertEquals( diff --git a/pom.xml b/pom.xml index aff4cd65..155d7771 100644 --- a/pom.xml +++ b/pom.xml @@ -184,7 +184,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.11.0 11 11 @@ -198,7 +198,7 @@ org.apache.maven.plugins maven-surefire-plugin - 3.0.0-M7 + 3.0.0 set