Index
All Classes and Interfaces|All Packages
A
- afterAll(ExtensionContext) - Method in class dev.relism.flash.testing.FlashTest
- afterEach(ExtensionContext) - Method in class dev.relism.flash.testing.FlashTest
- app() - Method in class dev.relism.flash.testing.FlashTest
-
The running app — escape hatch for assertions the harness does not cover.
- awaitClose(Duration) - Method in class dev.relism.flash.testing.FlashWebSocket
-
Waits for the server to close the connection and returns its close status code.
- awaitText(Duration) - Method in class dev.relism.flash.testing.FlashWebSocket
-
Waits for the next text message.
B
- baseUri() - Method in class dev.relism.flash.testing.FlashTest
-
Base URI of the running server, e.g.
- beforeAll(ExtensionContext) - Method in class dev.relism.flash.testing.FlashTest
- beforeEach(ExtensionContext) - Method in class dev.relism.flash.testing.FlashTest
- body() - Method in class dev.relism.flash.testing.FlashResponse
-
Response body decoded as a string.
- body(byte[]) - Method in class dev.relism.flash.testing.FlashRequest
-
Sets a raw request body.
- body(String) - Method in class dev.relism.flash.testing.FlashRequest
-
Sets a UTF-8 request body.
C
- client() - Method in class dev.relism.flash.testing.FlashTest
-
The client the harness issues requests with.
- close() - Method in class dev.relism.flash.testing.FlashWebSocket
-
Sends a normal close and gives the server a moment to answer it.
D
- delete(String) - Method in class dev.relism.flash.testing.FlashRequest
- delete(String) - Method in class dev.relism.flash.testing.FlashTest
-
Sends
DELETE pathwith no headers or body. - dev.relism.flash.testing - package dev.relism.flash.testing
E
- expectBody(String) - Method in class dev.relism.flash.testing.FlashResponse
-
Asserts the body matches exactly.
- expectBodyContains(String) - Method in class dev.relism.flash.testing.FlashResponse
-
Asserts the body contains
fragment. - expectHeader(String, String) - Method in class dev.relism.flash.testing.FlashResponse
-
Asserts the first value of a header (name case-insensitive).
- expectStatus(int) - Method in class dev.relism.flash.testing.FlashResponse
-
Asserts the status code.
F
- FlashRequest - Class in dev.relism.flash.testing
-
A request being built against a
FlashTestserver. - FlashResponse - Class in dev.relism.flash.testing
-
A response from a
FlashTestserver, with chainable assertions. - FlashTest - Class in dev.relism.flash.testing
-
Boots a real
FlashAppon an OS-assigned port for the duration of a test class or a single test, and gives you a client pointed at it. - FlashWebSocket - Class in dev.relism.flash.testing
-
A WebSocket connected to a
FlashTestserver, for asserting on what a Flash endpoint pushes back.
G
- get(String) - Method in class dev.relism.flash.testing.FlashRequest
- get(String) - Method in class dev.relism.flash.testing.FlashTest
-
Sends
GET pathwith no headers or body.
H
- head(String) - Method in class dev.relism.flash.testing.FlashRequest
- header(String) - Method in class dev.relism.flash.testing.FlashResponse
-
First value of
name(case-insensitive), ornullif absent. - header(String, String) - Method in class dev.relism.flash.testing.FlashRequest
-
Adds a header.
- headers() - Method in class dev.relism.flash.testing.FlashResponse
-
All response headers.
J
- json(String) - Method in class dev.relism.flash.testing.FlashRequest
-
Sets a UTF-8 body and
content-type: application/json.
M
- mock(Class<T>, T) - Method in class dev.relism.flash.testing.FlashTest
-
Replaces the service bound to
typewithinstancefor this server. - More than one server - Search tag in class dev.relism.flash.testing.FlashTest
- Section
O
- of(FlashApplication) - Static method in class dev.relism.flash.testing.FlashTest
-
Creates a harness for
application. - options(String) - Method in class dev.relism.flash.testing.FlashRequest
P
- patch(String) - Method in class dev.relism.flash.testing.FlashRequest
- port() - Method in class dev.relism.flash.testing.FlashTest
-
OS-assigned port of the running server.
- post(String) - Method in class dev.relism.flash.testing.FlashRequest
- profile(Consumer<FlashConfiguration.FlashConfigurationBuilder>) - Method in class dev.relism.flash.testing.FlashTest
-
Customises the
FlashConfigurationthis server runs with — timeouts, HTTP/2 switches, buffer sizes. - put(String) - Method in class dev.relism.flash.testing.FlashRequest
R
- Replacing services - Search tag in class dev.relism.flash.testing.FlashTest
- Section
- request() - Method in class dev.relism.flash.testing.FlashTest
-
Starts a request with headers or a body; the HTTP verb sends it.
S
- Scope - Search tag in class dev.relism.flash.testing.FlashTest
- Section
- send(String, String) - Method in class dev.relism.flash.testing.FlashRequest
-
Sends any method, including the ones Flash adds beyond RFC 9110 (
PURGE,QUERY). - sendText(String) - Method in class dev.relism.flash.testing.FlashWebSocket
-
Sends a whole text message.
- status() - Method in class dev.relism.flash.testing.FlashResponse
-
Response status code.
W
- with(Consumer<FlashRequest>) - Method in class dev.relism.flash.testing.FlashRequest
-
Applies
customizer— how an extension's test kit attaches a credential, for instance. - ws(String) - Method in class dev.relism.flash.testing.FlashTest
-
Opens a WebSocket to
pathon this server.
All Classes and Interfaces|All Packages