From 79fe5c2f3e9bb977f258416da23463ace911c05f Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Wed, 26 Oct 2022 13:12:55 +0300 Subject: [PATCH] fix(jans-auth-server): sonar smell fix Native SSO #2518 --- .../jans/as/server/authorize/ws/rs/AuthzRequestServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jans-auth-server/server/src/test/java/io/jans/as/server/authorize/ws/rs/AuthzRequestServiceTest.java b/jans-auth-server/server/src/test/java/io/jans/as/server/authorize/ws/rs/AuthzRequestServiceTest.java index bc2d5f3664d..c05f46dfd38 100644 --- a/jans-auth-server/server/src/test/java/io/jans/as/server/authorize/ws/rs/AuthzRequestServiceTest.java +++ b/jans-auth-server/server/src/test/java/io/jans/as/server/authorize/ws/rs/AuthzRequestServiceTest.java @@ -99,7 +99,7 @@ public void addDeviceSecretToSession_withDeviceSsoScope_shouldGenerateDeviceSecr assertTrue(sessionId.getDeviceSecrets().isEmpty()); authzRequestService.addDeviceSecretToSession(authzRequest, sessionId); - assertEquals(1, sessionId.getDeviceSecrets().size()); + assertEquals(sessionId.getDeviceSecrets().size(), 1); assertTrue(StringUtils.isNotBlank(sessionId.getDeviceSecrets().get(0))); }