Package io.quarkiverse.mcp.server.test
Interface McpAssured.McpAssert.GenericMessage<ASSERT extends McpAssured.McpAssert<ASSERT>>
- Type Parameters:
ASSERT-
- Enclosing interface:
- McpAssured.McpAssert<ASSERT extends McpAssured.McpAssert<ASSERT>>
public static interface McpAssured.McpAssert.GenericMessage<ASSERT extends McpAssured.McpAssert<ASSERT>>
A generic message.
-
Method Summary
Modifier and TypeMethodDescriptionsend()Send the message to the server.withAssert(Consumer<io.vertx.core.json.JsonObject> assertFunction) The assert function is not used until theMcpAssured.McpAssert.thenAssertResults()method is called.withErrorAssert(Consumer<McpAssured.McpError> errorAssertFunction) The assert function is not used until theMcpAssured.McpAssert.thenAssertResults()method is called.
-
Method Details
-
withAssert
McpAssured.McpAssert.GenericMessage<ASSERT> withAssert(Consumer<io.vertx.core.json.JsonObject> assertFunction) The assert function is not used until theMcpAssured.McpAssert.thenAssertResults()method is called.- Parameters:
errorAssertFunction-- Returns:
- self
-
withErrorAssert
McpAssured.McpAssert.GenericMessage<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 the message to the server.- Returns:
- the assert group
-