From 3f3fb5a488839dae69d0af3b065a872a9090db78 Mon Sep 17 00:00:00 2001 From: nasonawa Date: Thu, 28 Sep 2023 20:51:59 +0530 Subject: [PATCH] [ELY-2599] Update assertEquals calls in RegexRoleMapperTest so that the expected value and actual value are passed in the correct order --- .../security/authz/RegexRoleMapperTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/auth/server/base/src/test/java/org/wildfly/security/authz/RegexRoleMapperTest.java b/auth/server/base/src/test/java/org/wildfly/security/authz/RegexRoleMapperTest.java index 0dcd79c601a..87e660bad03 100644 --- a/auth/server/base/src/test/java/org/wildfly/security/authz/RegexRoleMapperTest.java +++ b/auth/server/base/src/test/java/org/wildfly/security/authz/RegexRoleMapperTest.java @@ -48,7 +48,7 @@ public void testRegexMapper() { iterator.next(); count++; } - assertEquals(count, 3); + assertEquals(3, count); } @Test @@ -69,7 +69,7 @@ public void testRegexMapperDoNotKeepNonMapped() { iterator.next(); count++; } - assertEquals(count, 2); + assertEquals(2,count); } @Test @@ -90,7 +90,7 @@ public void testRegexMapper2() { iterator.next(); count++; } - assertEquals(count, 2); + assertEquals(2,count); } @Test @@ -111,7 +111,7 @@ public void testRegexMapper3() { iterator.next(); count++; } - assertEquals(count, 3); + assertEquals(3,count); } @Test @@ -132,7 +132,7 @@ public void testRegexMapperEmailKeep() { iterator.next(); count++; } - assertEquals(count, 3); + assertEquals(3,count); } @Test @@ -153,7 +153,7 @@ public void testRegexMapperEmailDoNotKeep() { iterator.next(); count++; } - assertEquals(count, 2); + assertEquals( 2,count); } @Test @@ -174,7 +174,7 @@ public void testRegexMapperEmailDoNotKeepReplaceAll() { iterator.next(); count++; } - assertEquals(count, 2); + assertEquals( 2,count); } @Test(expected = IllegalArgumentException.class) @@ -238,7 +238,7 @@ public void testRegexMapperReplaceAllSubstrings() { iterator.next(); count++; } - assertEquals(count, 2); + assertEquals(2,count); } private Set createSet(String... values) {