From d76f3812686c8000ae69b5561441fb0b16f4d154 Mon Sep 17 00:00:00 2001 From: Nico Korthout Date: Tue, 2 Jan 2024 14:55:08 +0100 Subject: [PATCH] docs: describe what to do when test fails This test is quite important, because it ensure we don't forget supporting RPCs in ZPT. To help clarify this, I've added instructions in case the test fails. (cherry picked from commit 46a2e5c97970bf71cd0cd998264f4a04e2ba871f) --- .../process/test/engine/GrpcToLogStreamGatewayTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/src/test/java/io/camunda/zeebe/process/test/engine/GrpcToLogStreamGatewayTest.java b/engine/src/test/java/io/camunda/zeebe/process/test/engine/GrpcToLogStreamGatewayTest.java index 2727c0122..2bd639573 100644 --- a/engine/src/test/java/io/camunda/zeebe/process/test/engine/GrpcToLogStreamGatewayTest.java +++ b/engine/src/test/java/io/camunda/zeebe/process/test/engine/GrpcToLogStreamGatewayTest.java @@ -44,7 +44,13 @@ void testImplementsGatewayEndpoint(final String methodName) { .findAny(); assertThat(optionalMethod) - .describedAs("Expected method %s to be implemented", methodName) + .describedAs( + """ + Expected method %s to be implemented. \ + When this test fails, it's likely a new RPC that ZPT should support. \ + Please check whether it should be supported by ZPT. \ + If it should be suported, add a test case to EngineClientTest.java""", + methodName) .isPresent(); }