Skip to content

Commit

Permalink
docs: describe what to do when test fails
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
korthout committed Jan 2, 2024
1 parent 0c24ced commit 46a2e5c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 46a2e5c

Please sign in to comment.