@@ -55,14 +55,13 @@ public void get_withAllParam_valid() {
55
55
client .setDn ("inum=0000,ou=clients,o=jans" );
56
56
when (ssaRestWebServiceValidator .getClientFromSession ()).thenReturn (client );
57
57
58
- boolean softwareRoles = false ;
59
58
String jti = "my-jti" ;
60
59
Long orgId = 1000L ;
61
- Response response = ssaGetAction .get (softwareRoles , jti , orgId , mock (HttpServletRequest .class ));
60
+ Response response = ssaGetAction .get (jti , orgId , mock (HttpServletRequest .class ));
62
61
assertNotNull (response , "response is null" );
63
62
assertNotNull (response .getEntity (), "response entity is null" );
64
63
assertEquals (response .getStatus (), Response .Status .OK .getStatusCode ());
65
- verify (log ).debug (anyString (), any (), any (), any () );
64
+ verify (log ).debug (anyString (), any (), any ());
66
65
verify (errorResponseFactory ).validateFeatureEnabled (any ());
67
66
verify (ssaContextBuilder ).buildModifySsaResponseContext (any (), any (), any (), any (), any ());
68
67
verify (ssaJsonService ).jsonArrayToString (any ());
@@ -79,11 +78,10 @@ public void get_invalidClientAndIsErrorEnabledFalse_badRequestResponse() {
79
78
doThrow (error ).when (ssaRestWebServiceValidator ).getClientFromSession ();
80
79
when (log .isErrorEnabled ()).thenReturn (Boolean .FALSE );
81
80
82
- boolean softwareRoles = false ;
83
81
String jti = "my-jti" ;
84
82
Long orgId = 1000L ;
85
- assertThrows (WebApplicationException .class , () -> ssaGetAction .get (softwareRoles , jti , orgId , mock (HttpServletRequest .class )));
86
- verify (log ).debug (anyString (), any (), any (), any () );
83
+ assertThrows (WebApplicationException .class , () -> ssaGetAction .get (jti , orgId , mock (HttpServletRequest .class )));
84
+ verify (log ).debug (anyString (), any (), any ());
87
85
verify (ssaRestWebServiceValidator ).getClientFromSession ();
88
86
verify (log ).isErrorEnabled ();
89
87
verify (log , never ()).error (anyString (), any (WebApplicationException .class ));
@@ -100,11 +98,10 @@ public void get_invalidClientAndIsErrorEnabledTrue_badRequestResponse() {
100
98
doThrow (error ).when (ssaRestWebServiceValidator ).getClientFromSession ();
101
99
when (log .isErrorEnabled ()).thenReturn (Boolean .TRUE );
102
100
103
- boolean softwareRoles = false ;
104
101
String jti = "my-jti" ;
105
102
Long orgId = 1000L ;
106
- assertThrows (WebApplicationException .class , () -> ssaGetAction .get (softwareRoles , jti , orgId , mock (HttpServletRequest .class )));
107
- verify (log ).debug (anyString (), any (), any (), any () );
103
+ assertThrows (WebApplicationException .class , () -> ssaGetAction .get (jti , orgId , mock (HttpServletRequest .class )));
104
+ verify (log ).debug (anyString (), any (), any ());
108
105
verify (ssaRestWebServiceValidator ).getClientFromSession ();
109
106
verify (log ).isErrorEnabled ();
110
107
verify (log ).error (anyString (), any (WebApplicationException .class ));
@@ -120,11 +117,10 @@ public void get_invalidClientInternalServer_badRequestResponse() {
120
117
.build ());
121
118
when (errorResponseFactory .createWebApplicationException (any (Response .Status .class ), any (SsaErrorResponseType .class ), anyString ())).thenThrow (error );
122
119
123
- boolean softwareRoles = false ;
124
120
String jti = "my-jti" ;
125
121
Long orgId = 1000L ;
126
- assertThrows (WebApplicationException .class , () -> ssaGetAction .get (softwareRoles , jti , orgId , mock (HttpServletRequest .class )));
127
- verify (log ).debug (anyString (), any (), any (), any () );
122
+ assertThrows (WebApplicationException .class , () -> ssaGetAction .get (jti , orgId , mock (HttpServletRequest .class )));
123
+ verify (log ).debug (anyString (), any (), any ());
128
124
verify (ssaRestWebServiceValidator ).getClientFromSession ();
129
125
verify (log , never ()).isErrorEnabled ();
130
126
verify (log ).error (any (), any (Exception .class ));
0 commit comments