Package io.quarkiverse.mcp.server.test
Interface McpAssured.McpAssert.ResourcesReadMessage<ASSERT extends McpAssured.McpAssert<ASSERT>>
- Type Parameters:
ASSERT-
- Enclosing interface:
- McpAssured.McpAssert<ASSERT extends McpAssured.McpAssert<ASSERT>>
public static interface McpAssured.McpAssert.ResourcesReadMessage<ASSERT extends McpAssured.McpAssert<ASSERT>>
A "resources/read" message.
-
Method Summary
Modifier and TypeMethodDescriptionsend()Send the message.withAssert(Consumer<io.quarkiverse.mcp.server.ResourceResponse> assertFunction) withErrorAssert(Consumer<McpAssured.McpError> errorAssertFunction) withMetadata(Map<String, Object> meta)
-
Method Details
-
withMetadata
- Parameters:
meta-- Returns:
- self
-
withAssert
McpAssured.McpAssert.ResourcesReadMessage<ASSERT> withAssert(Consumer<io.quarkiverse.mcp.server.ResourceResponse> assertFunction) - Parameters:
assertFunction-- Returns:
- self
-
withErrorAssert
McpAssured.McpAssert.ResourcesReadMessage<ASSERT> withErrorAssert(Consumer<McpAssured.McpError> errorAssertFunction) - Parameters:
errorAssertFunction-- Returns:
- self
-
send
ASSERT send()Send the message.The assert function is not used until the
McpAssured.McpAssert.thenAssertResults()method is called.- Returns:
- the assert group
-