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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1ea492ac12 Correct order of expected and actual
1ea492ac12 is described below

commit 1ea492ac123c2e168e5c21259297a438897fdd11
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 bdd1af6972..4b96c282c2 100644
--- a/test/org/apache/catalina/realm/TestDataSourceRealm.java
+++ b/test/org/apache/catalina/realm/TestDataSourceRealm.java
@@ -143,7 +143,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