Skip to content

Commit

Permalink
#2868: fix code smell issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Brescia committed May 13, 2024
1 parent 900e1ff commit 6f69ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ public Optional<Fact> fetchBySerial(long serial) {
() -> converter.fromProto(blockingStub.fetchBySerial(converter.toProto(serial))));
}

@VisibleForTesting
void reset() {
// marks factstore as not initialized, so that a subsequent call needs to go through handshake
// first. This is used to signal a faulty connection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FactCastGrpcStubsFactoryImplTest {
final FactCastGrpcStubsFactory uut = new FactCastGrpcStubsFactoryImpl();

@Test
public void createsBlockingStub() {
void createsBlockingStub() {
try (MockedStatic<RemoteFactStoreGrpc> mock = mockStatic(RemoteFactStoreGrpc.class)) {
RemoteFactStoreGrpc.RemoteFactStoreBlockingStub stub =
mock(RemoteFactStoreGrpc.RemoteFactStoreBlockingStub.class);
Expand All @@ -44,7 +44,7 @@ public void createsBlockingStub() {
}

@Test
public void createsStub() {
void createsStub() {
try (MockedStatic<RemoteFactStoreGrpc> mock = mockStatic(RemoteFactStoreGrpc.class)) {
RemoteFactStoreGrpc.RemoteFactStoreStub stub =
mock(RemoteFactStoreGrpc.RemoteFactStoreStub.class);
Expand Down

0 comments on commit 6f69ffc

Please sign in to comment.