From a8325654b0d25dfd8811710efe58f997c88d4688 Mon Sep 17 00:00:00 2001 From: Eric Deandrea Date: Tue, 19 Dec 2023 10:51:01 -0500 Subject: [PATCH] Adding useJUnitPlatform() (#34) * Adding useJUnitPlatform() * GrpcResponseDefinitionBuilder.withFixedDelay returning null instead of this --- build.gradle | 1 + .../org/wiremock/grpc/dsl/GrpcResponseDefinitionBuilder.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 622c98a..8ec90ae 100644 --- a/build.gradle +++ b/build.gradle @@ -174,6 +174,7 @@ publishing { } test { + useJUnitPlatform() testLogging { events "PASSED", "FAILED", "SKIPPED" exceptionFormat "full" diff --git a/src/main/java/org/wiremock/grpc/dsl/GrpcResponseDefinitionBuilder.java b/src/main/java/org/wiremock/grpc/dsl/GrpcResponseDefinitionBuilder.java index ee86432..e0dc5ab 100644 --- a/src/main/java/org/wiremock/grpc/dsl/GrpcResponseDefinitionBuilder.java +++ b/src/main/java/org/wiremock/grpc/dsl/GrpcResponseDefinitionBuilder.java @@ -63,7 +63,7 @@ public GrpcResponseDefinitionBuilder withTemplatingEnabled(boolean enabled) { public GrpcResponseDefinitionBuilder withFixedDelay(long milliseconds) { this.delay = new FixedDelayDistribution(milliseconds); - return null; + return this; } public GrpcResponseDefinitionBuilder withRandomDelay(DelayDistribution distribution) {