Remove unused mock in unit test.

This commit is contained in:
KomachiSion 2022-02-15 14:29:41 +08:00
parent eeb5268282
commit 5931ded303
2 changed files with 0 additions and 2 deletions

View File

@ -59,7 +59,6 @@ public class GrpcProtocolAuthServiceTest {
protocolAuthService.initialize();
mockConfigRequest();
mockNamingRequest();
Mockito.when(authConfigs.isAuthEnabled()).thenReturn(true);
}
private void mockConfigRequest() {

View File

@ -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