Skip to content

Commit

Permalink
#2868: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Brescia committed May 6, 2024
1 parent 3a663e4 commit 6d0d014
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,18 +506,6 @@ void testCredentialsRightFormat() {

@Test
void testNewCredentials() {
final FactCastGrpcStubsFactory stubsFactory = mock(FactCastGrpcStubsFactory.class);
final RemoteFactStoreBlockingStub blockingStub = mock(RemoteFactStoreBlockingStub.class);
final RemoteFactStoreStub stub = mock(RemoteFactStoreStub.class);
when(blockingStub.withWaitForReady()).thenReturn(blockingStub);
when(stub.withWaitForReady()).thenReturn(stub);
when(stubsFactory.createBlockingStub(channel)).thenReturn(blockingStub);
when(stubsFactory.createStub(channel)).thenReturn(stub);
when(blockingStub.withInterceptors(any())).thenReturn(blockingStub);
when(blockingStub.handshake(any()))
.thenReturn(
conv.toProto(ServerConfig.of(GrpcFactStore.PROTOCOL_VERSION, new HashMap<>())));

final FactCastGrpcClientProperties props = new FactCastGrpcClientProperties();
props.setUser("foo");
props.setPassword("bar");
Expand All @@ -532,18 +520,6 @@ void testNewCredentials() {

@Test
void testLegacyCredentials() {
final FactCastGrpcStubsFactory stubsFactory = mock(FactCastGrpcStubsFactory.class);
final RemoteFactStoreBlockingStub blockingStub = mock(RemoteFactStoreBlockingStub.class);
final RemoteFactStoreStub stub = mock(RemoteFactStoreStub.class);
when(blockingStub.withWaitForReady()).thenReturn(blockingStub);
when(stub.withWaitForReady()).thenReturn(stub);
when(stubsFactory.createBlockingStub(channel)).thenReturn(blockingStub);
when(stubsFactory.createStub(channel)).thenReturn(stub);
when(blockingStub.withInterceptors(any())).thenReturn(blockingStub);
when(blockingStub.handshake(any()))
.thenReturn(
conv.toProto(ServerConfig.of(GrpcFactStore.PROTOCOL_VERSION, new HashMap<>())));

final FactCastGrpcClientProperties props = new FactCastGrpcClientProperties();

GrpcFactStore uutLegacyCredentials =
Expand Down

0 comments on commit 6d0d014

Please sign in to comment.