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

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 718977d051 Fix unit test failure
718977d051 is described below

commit 718977d051ef508cedf13bc5b7d7c64ec8469f7c
Author: James Bognar <[email protected]>
AuthorDate: Sun Nov 30 15:57:43 2025 -0500

    Fix unit test failure
---
 .../test/java/org/apache/juneau/common/utils/StringFormat_Test.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/juneau-utest/src/test/java/org/apache/juneau/common/utils/StringFormat_Test.java
 
b/juneau-utest/src/test/java/org/apache/juneau/common/utils/StringFormat_Test.java
index ea6ec942d8..026e207c4a 100644
--- 
a/juneau-utest/src/test/java/org/apache/juneau/common/utils/StringFormat_Test.java
+++ 
b/juneau-utest/src/test/java/org/apache/juneau/common/utils/StringFormat_Test.java
@@ -313,7 +313,8 @@ class StringFormat_Test extends TestBase {
                assertMixedFormat("Number: 42", "Number: %d", new 
BigDecimal("42"));
                // MessageFormat throws NullPointerException when locale is 
null, but StringFormat handles it
                // So we test StringFormat's behavior directly instead of 
comparing with MessageFormat
-               assertMixedFormat("Price: $19.99", "Price: 
{0,number,currency}", (Locale)null, 19.99);
+               // Use Locale.US to get dollar sign for currency formatting
+               assertMixedFormat("Price: $19.99", "Price: 
{0,number,currency}", Locale.US, 19.99);
        }
 
        
//====================================================================================================

Reply via email to