From a63644e33382c40c1011c9a7abff7841b9e53fb2 Mon Sep 17 00:00:00 2001 From: Renato Cavalcanti Date: Thu, 23 Nov 2023 09:28:27 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Enno Runne <458526+ennru@users.noreply.github.com> --- .../kalix/javasdk/testkit/junit/KalixTestKitResource.java | 4 +++- .../javasdk/testkit/junit/jupiter/KalixTestKitExtension.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/KalixTestKitResource.java b/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/KalixTestKitResource.java index 38e3b802de..2dcf30a75d 100644 --- a/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/KalixTestKitResource.java +++ b/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/KalixTestKitResource.java @@ -29,9 +29,11 @@ import org.junit.rules.ExternalResource; /** - * A JUnit external resource for {@link KalixTestKit}, which automatically manages the lifecycle of + * A JUnit 4 external resource for {@link KalixTestKit}, which automatically manages the lifecycle of * the testkit. The testkit will be automatically stopped when the test completes or fails. * + * If you prefer JUnit 5 "Jupiter" use {@link KalixTestKitExtension}. + * *

Example: * *

diff --git a/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/jupiter/KalixTestKitExtension.java b/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/jupiter/KalixTestKitExtension.java
index 4ec5dbaf1f..d9c02c1490 100644
--- a/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/jupiter/KalixTestKitExtension.java
+++ b/sdk/java-sdk-protobuf-testkit/src/main/java/kalix/javasdk/testkit/junit/jupiter/KalixTestKitExtension.java
@@ -33,7 +33,7 @@
 import org.junit.rules.ExternalResource;
 
 /**
- * A JUnit Extension for {@link KalixTestKit}, which automatically manages the lifecycle of
+ * A JUnit 5 "Jupiter" Extension for {@link KalixTestKit}, which automatically manages the lifecycle of
  * the testkit. The testkit will be automatically stopped when the test completes or fails.
  *
  * 

Example: