From 5f9674d751203e8e195a057467d1ae2c6c06cccc Mon Sep 17 00:00:00 2001 From: Amanda Ariyaratne Date: Mon, 14 Oct 2024 12:21:38 +0530 Subject: [PATCH] improve unit test to cover exceptions --- .../wso2/carbon/identity/oauth2/util/OAuth2UtilTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.oauth/src/test/java/org/wso2/carbon/identity/oauth2/util/OAuth2UtilTest.java b/components/org.wso2.carbon.identity.oauth/src/test/java/org/wso2/carbon/identity/oauth2/util/OAuth2UtilTest.java index 2de41c4c37..287852a5c3 100644 --- a/components/org.wso2.carbon.identity.oauth/src/test/java/org/wso2/carbon/identity/oauth2/util/OAuth2UtilTest.java +++ b/components/org.wso2.carbon.identity.oauth/src/test/java/org/wso2/carbon/identity/oauth2/util/OAuth2UtilTest.java @@ -132,6 +132,7 @@ import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.clearInvocations; import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.lenient; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.mockStatic; @@ -2876,14 +2877,20 @@ public void testInitiateOIDCScopes(List scopeClaimsList, List