Remove unused mock in unit test.
This commit is contained in:
parent
eeb5268282
commit
5931ded303
@ -59,7 +59,6 @@ public class GrpcProtocolAuthServiceTest {
|
||||
protocolAuthService.initialize();
|
||||
mockConfigRequest();
|
||||
mockNamingRequest();
|
||||
Mockito.when(authConfigs.isAuthEnabled()).thenReturn(true);
|
||||
}
|
||||
|
||||
private void mockConfigRequest() {
|
||||
|
@ -64,7 +64,6 @@ public class HttpProtocolAuthServiceTest {
|
||||
Mockito.when(request.getParameter(eq("tenant"))).thenReturn("testCNs");
|
||||
Mockito.when(request.getParameter(eq(Constants.GROUP))).thenReturn("testCG");
|
||||
Mockito.when(request.getParameter(eq(Constants.DATAID))).thenReturn("testD");
|
||||
Mockito.when(authConfigs.isAuthEnabled()).thenReturn(true);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user