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

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 1349e047a6 Correct order of expected and actual
1349e047a6 is described below

commit 1349e047a6856bbf3f94a9630c44c53fa63c899c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Aug 15 17:57:34 2025 +0100

    Correct order of expected and actual
---
 test/org/apache/catalina/realm/TestDataSourceRealm.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/realm/TestDataSourceRealm.java 
b/test/org/apache/catalina/realm/TestDataSourceRealm.java
index 168fe5dd0b..6c09624e1f 100644
--- a/test/org/apache/catalina/realm/TestDataSourceRealm.java
+++ b/test/org/apache/catalina/realm/TestDataSourceRealm.java
@@ -147,7 +147,7 @@ public class TestDataSourceRealm extends LoggingBaseTest {
         Assert.assertFalse(gp.hasRole("manager"));
 
         String pass = db.getPassword("tomcat");
-        Assert.assertEquals(pass, "password");
+        Assert.assertEquals("password", pass);
 
         List<String> roles = db.getRoles("tomcat");
         Assert.assertEquals(2, roles.size());


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to