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