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

lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git


The following commit(s) were added to refs/heads/main by this push:
     new 74563f91d chore(test): fixed AuthenticatingRealmJava test on Semeru JVM
74563f91d is described below

commit 74563f91dbef6523608f12ac8c369e6c9d5af21c
Author: lprimak <[email protected]>
AuthorDate: Sun Jan 18 14:59:10 2026 -0600

    chore(test): fixed AuthenticatingRealmJava test on Semeru JVM
---
 .../java/org/apache/shiro/realm/AuthenticatingRealmJavaTest.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/core/src/test/java/org/apache/shiro/realm/AuthenticatingRealmJavaTest.java 
b/core/src/test/java/org/apache/shiro/realm/AuthenticatingRealmJavaTest.java
index 8828992d8..199f42fd9 100644
--- a/core/src/test/java/org/apache/shiro/realm/AuthenticatingRealmJavaTest.java
+++ b/core/src/test/java/org/apache/shiro/realm/AuthenticatingRealmJavaTest.java
@@ -63,10 +63,10 @@ public class AuthenticatingRealmJavaTest {
     @DisplayName("should create BCrypt hash when user does not exist")
     void authenticatingRealmShouldCreateBcryptHashWhenUserDoesNotExist() {
         // given
-        DefaultHashService bcraptHashService = new DefaultHashService();
-        bcraptHashService.setDefaultAlgorithmName("2y");
+        DefaultHashService bcryptHashService = new DefaultHashService();
+        bcryptHashService.setDefaultAlgorithmName("2y");
         DefaultPasswordService defaultPasswordService = new 
DefaultPasswordService();
-        defaultPasswordService.setHashService(bcraptHashService);
+        defaultPasswordService.setHashService(bcryptHashService);
         PasswordMatcher matcher = new PasswordMatcher();
         matcher.setPasswordService(defaultPasswordService);
 
@@ -85,7 +85,8 @@ public class AuthenticatingRealmJavaTest {
 
         Object simulatedCredentials = spiedRealm.authInfo.getCredentials();
         assertThat(simulatedCredentials).isInstanceOf(Hash.class);
-        
assertThat(simulatedCredentials.getClass().getName()).contains("BCrypt");
+        assertThat(simulatedCredentials.getClass().getName())
+                .matches(name -> name.contains("Argon") || 
name.contains("BCrypt"));
     }
 
     /**

Reply via email to