Package io.quarkiverse.mcp.server.test
Interface McpAssured.McpAssert.PingMessage<ASSERT extends McpAssured.McpAssert<ASSERT>>
- Type Parameters:
ASSERT-
- Enclosing interface:
- McpAssured.McpAssert<ASSERT extends McpAssured.McpAssert<ASSERT>>
public static interface McpAssured.McpAssert.PingMessage<ASSERT extends McpAssured.McpAssert<ASSERT>>
A
ping message.-
Method Summary
Modifier and TypeMethodDescriptionsend()Send apingmessage to the server.withErrorAssert(Consumer<McpAssured.McpError> errorAssertFunction) The assert function is not used until theMcpAssured.McpAssert.thenAssertResults()method is called.Add an assert function that expects an empty result.
-
Method Details
-
withPongAssert
McpAssured.McpAssert.PingMessage<ASSERT> withPongAssert()Add an assert function that expects an empty result.The assert function is not used until the
McpAssured.McpAssert.thenAssertResults()method is called.- Parameters:
errorAssertFunction-- Returns:
- self
-
withErrorAssert
McpAssured.McpAssert.PingMessage<ASSERT> withErrorAssert(Consumer<McpAssured.McpError> errorAssertFunction) The assert function is not used until theMcpAssured.McpAssert.thenAssertResults()method is called.- Parameters:
errorAssertFunction-- Returns:
- self
-
send
ASSERT send()Send apingmessage to the server.- Returns:
- the assert group
-