Index
All Classes and Interfaces|All Packages
A
- AbstractAllOrEachExtension - Class in com.linecorp.armeria.testing.junit5.common
-
A base class for JUnit5 extensions that allows implementations to control whether the callbacks are run around the entire class, like
BeforeAll
orAfterAll
, or around each test method, likeBeforeEach
orAfterEach
. - AbstractAllOrEachExtension() - Constructor for class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
- after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
-
A method that should be run at the end of a test lifecycle.
- after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
-
Shuts down all threads created by this
Extension
asynchronously. - after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Shuts down all threads created by this
Extension
asynchronously. - after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Deletes the generated self-signed certificate.
- after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Calls
ServerExtension.stop()
, without waiting until theServer
is stopped completely. - afterAll(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
- afterEach(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
B
- before(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
-
A method that should be run at the beginning of a test lifecycle.
- before(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
- before(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
- before(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Generates a self-signed certificate.
- before(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Calls
ServerExtension.start()
if auto-start is enabled. - beforeAll(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
- beforeEach(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
- beforeEach(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
- beforeTestExecution(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
- blockingWebClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
BlockingWebClient
configured byServerExtension.configureWebClient(WebClientBuilder)
. - blockingWebClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns a newly created
BlockingWebClient
configured byServerExtension.configureWebClient(WebClientBuilder)
and then the specified customizer.
C
- certificate() - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Returns the generated
X509Certificate
. - certificateFile() - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Returns the self-signed certificate file.
- clear() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Clears the captured
ServiceRequestContext
s. - com.linecorp.armeria.testing.junit5.common - package com.linecorp.armeria.testing.junit5.common
-
Common testing utilities.
- com.linecorp.armeria.testing.junit5.server - package com.linecorp.armeria.testing.junit5.server
-
Server-side testing utilities.
- com.linecorp.armeria.testing.junit5.server.mock - package com.linecorp.armeria.testing.junit5.server.mock
-
A mock server for use when testing clients.
- com.linecorp.armeria.testing.server - package com.linecorp.armeria.testing.server
-
Testing utilities.
- configure(ServerBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
- configure(ServerBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Configures the
Server
with the givenServerBuilder
. - configureServer(ServerBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Configures the
ServerBuilder
beyond the defaults of enabling HTTPs and registering a service for handling enqueued responses. - configureWebClient(WebClientBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Configures the
WebClient
with the givenWebClientBuilder
. - configureWebSocketClient(WebSocketClientBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Configures the
WebSocketClient
with the givenWebSocketClientBuilder
. - context() - Method in class com.linecorp.armeria.testing.junit5.server.mock.RecordedRequest
-
The
ServiceRequestContext
created when handling the request.
E
- endpoint(SessionProtocol) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
Endpoint
of the specifiedSessionProtocol
for theServer
. - enqueue(AggregatedHttpResponse) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Enqueues the
AggregatedHttpResponse
to return to a client of thisMockWebServerExtension
. - enqueue(HttpResponse) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Enqueues the
HttpResponse
to return to a client of thisMockWebServerExtension
. - equals(Object) - Method in class com.linecorp.armeria.testing.junit5.server.mock.RecordedRequest
- EventLoopExtension - Class in com.linecorp.armeria.testing.junit5.common
-
An
Extension
that provides anEventLoopGroup
. - EventLoopExtension() - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
- EventLoopExtension(boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
- EventLoopExtension(String) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
- EventLoopExtension(String, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
- EventLoopExtension(ThreadFactory) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
- EventLoopGroupExtension - Class in com.linecorp.armeria.testing.junit5.common
-
An
Extension
that provides anEventLoopGroup
. - EventLoopGroupExtension(int) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extension
that provides anEventLoopGroup
. - EventLoopGroupExtension(int, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extension
that provides anEventLoopGroup
. - EventLoopGroupExtension(int, String) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extension
that provides anEventLoopGroup
. - EventLoopGroupExtension(int, String, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extension
that provides anEventLoopGroup
. - EventLoopGroupExtension(int, ThreadFactory) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extension
that provides anEventLoopGroup
.
G
- get() - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
-
Returns the
EventLoop
. - get() - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Returns the
EventLoopGroup
.
H
- hashCode() - Method in class com.linecorp.armeria.testing.junit5.server.mock.RecordedRequest
- hasHttp() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns
true
if theServer
is started and it has an HTTP port open. - hasHttps() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns
true
if theServer
is started and it has an HTTPS port open. - httpEndpoint() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
Endpoint
for theServer
. - httpPort() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP port number of the
Server
. - httpsEndpoint() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS
Endpoint
for theServer
. - httpSocketAddress() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
InetSocketAddress
of theServer
. - httpsPort() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS port number of the
Server
. - httpsSocketAddress() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS
InetSocketAddress
of theServer
. - httpsUri() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS
URI
for theServer
. - httpsUri(SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS
URI
for theServer
. - httpUri() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
URI
for theServer
. - httpUri(SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
URI
for theServer
.
I
- isEmpty() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Returns whether there is any captured
ServiceRequestContext
.
M
- MockWebServerExtension - Class in com.linecorp.armeria.testing.junit5.server.mock
-
An
Extension
primarily for testing clients. - MockWebServerExtension() - Constructor for class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
N
- newDecorator() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Creates a new decorator to capture the
ServiceRequestContext
s. - newDecorator(Predicate<? super ServiceRequestContext>) - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Creates a new decorator to capture the
ServiceRequestContext
s satisfying the given predicatefilter
.
P
- poll() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Retrieves and removes the first captured
ServiceRequestContext
, waiting up to 15 seconds if necessary until an element becomes available. - poll(long, TimeUnit) - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Retrieves and removes the first captured
ServiceRequestContext
, waiting up to the specified wait time if necessary until an element becomes available. - port(SessionProtocol) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the port number of the
Server
for the specifiedSessionProtocol
. - privateKey() - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Returns the
PrivateKey
of the self-signed certificate. - privateKeyFile() - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Returns the private key file of the self-signed certificate.
R
- RecordedRequest - Class in com.linecorp.armeria.testing.junit5.server.mock
-
A request that has been made to a
MockWebServerExtension
. - request() - Method in class com.linecorp.armeria.testing.junit5.server.mock.RecordedRequest
-
The
AggregatedHttpRequest
received by the server. - requestContextCaptor() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
ServiceRequestContextCaptor
that captures all theServiceRequestContext
s in thisServer
. - reset() - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Resets the mocking state of this extension.
- restClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
RestClient
configured byServerExtension.configureWebClient(WebClientBuilder)
. - restClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns a newly created
RestClient
configured byServerExtension.configureWebClient(WebClientBuilder)
and then the specified customizer. - runForEachTest() - Method in class com.linecorp.armeria.testing.junit5.common.AbstractAllOrEachExtension
-
Returns whether this extension should run around each test method instead of the entire test class.
S
- SelfSignedCertificateExtension - Class in com.linecorp.armeria.testing.junit5.server
-
An
Extension
that provides a temporary self-signed certificate. - SelfSignedCertificateExtension() - Constructor for class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Creates a new instance.
- SelfSignedCertificateExtension(String) - Constructor for class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Creates a new instance.
- SelfSignedCertificateExtension(String, SecureRandom, int) - Constructor for class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Creates a new instance.
- SelfSignedCertificateExtension(String, SecureRandom, int, TemporalAccessor, TemporalAccessor) - Constructor for class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Creates a new instance.
- SelfSignedCertificateExtension(String, TemporalAccessor, TemporalAccessor) - Constructor for class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Creates a new instance.
- SelfSignedCertificateExtension(TemporalAccessor, TemporalAccessor) - Constructor for class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Creates a new instance.
- server() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the started
Server
. - ServerExtension - Class in com.linecorp.armeria.testing.junit5.server
-
An
Extension
that allows easy set-up and tear-down of aServer
. - ServerExtension() - Constructor for class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Creates a new instance with auto-start enabled.
- ServerExtension(boolean) - Constructor for class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Creates a new instance.
- ServiceRequestContextCaptor - Class in com.linecorp.armeria.testing.server
-
Captures the
ServiceRequestContext
s. - ServiceRequestContextCaptor() - Constructor for class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
- shouldCapture(ServiceRequestContext) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Determines whether the
ServiceRequestContext
should be captured or not. - size() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Returns the number of captured
ServiceRequestContext
s. - socketAddress(SessionProtocol) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
- start() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Starts the
Server
configured byServerExtension.configure(ServerBuilder)
. - stop() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Stops the
Server
asynchronously.
T
- take() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Retrieves and removes the first captured
ServiceRequestContext
, waiting if necessary until an element becomes available. - takeRequest() - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Returns the next
RecordedRequest
the server received. - takeRequest(int, TimeUnit) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Returns the next
RecordedRequest
the server received. - toString() - Method in class com.linecorp.armeria.testing.junit5.server.mock.RecordedRequest
U
- uri(SessionProtocol) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
- uri(SessionProtocol, SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
W
- webClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
WebClient
configured byServerExtension.configureWebClient(WebClientBuilder)
. - webClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns a newly created
WebClient
configured byServerExtension.configureWebClient(WebClientBuilder)
and then the specified customizer. - webSocketClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
WebSocketClient
configured byServerExtension.configureWebSocketClient(WebSocketClientBuilder)
.
All Classes and Interfaces|All Packages