Skip to content

Commit

Permalink
Fixing spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Dec 19, 2023
1 parent 1cb3545 commit b6cce3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/wiremock/grpc/dsl/WireMockGrpcService.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.github.tomakehurst.wiremock.http.RequestMethod;
import com.github.tomakehurst.wiremock.matching.RequestPattern;
import com.github.tomakehurst.wiremock.stubbing.StubMapping;
import java.util.List;
import org.wiremock.annotations.Beta;

@Beta(justification = "Incubating extension: https://github.com/wiremock/wiremock/issues/2383")
Expand Down Expand Up @@ -57,10 +56,9 @@ public GrpcVerification verify(CountMatchingStrategy countMatch, String method)

/** Resets all active mocks for the current gRPC service */
public void resetAllForService() {
final List<StubMapping> allMappings = wireMock.allStubMappings().getMappings();
final String servicePath = "/" + serviceName;

allMappings.stream()
wireMock.allStubMappings().getMappings().stream()
.filter(
mapping -> {
final RequestPattern requestMatcher = mapping.getRequest();
Expand Down

0 comments on commit b6cce3d

Please sign in to comment.