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
BeforeAllorAfterAll, or around each test method, likeBeforeEachorAfterEach. - 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
Extensionasynchronously. - after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Shuts down all threads created by this
Extensionasynchronously. - 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 theServeris 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
BlockingWebClientconfigured byServerExtension.configureWebClient(WebClientBuilder). - blockingWebClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns a newly created
BlockingWebClientconfigured 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
ServiceRequestContexts. - 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
Serverwith the givenServerBuilder. - configureServer(ServerBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Configures the
ServerBuilderbeyond 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
WebClientwith the givenWebClientBuilder. - configureWebSocketClient(WebSocketClientBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Configures the
WebSocketClientwith the givenWebSocketClientBuilder. - context() - Method in class com.linecorp.armeria.testing.junit5.server.mock.RecordedRequest
-
The
ServiceRequestContextcreated when handling the request.
E
- endpoint(SessionProtocol) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
Endpointof the specifiedSessionProtocolfor theServer. - enqueue(AggregatedHttpResponse) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Enqueues the
AggregatedHttpResponseto return to a client of thisMockWebServerExtension. - enqueue(HttpResponse) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Enqueues the
HttpResponseto 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
Extensionthat 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
Extensionthat provides anEventLoopGroup. - EventLoopGroupExtension(int) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extensionthat provides anEventLoopGroup. - EventLoopGroupExtension(int, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extensionthat provides anEventLoopGroup. - EventLoopGroupExtension(int, String) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extensionthat provides anEventLoopGroup. - EventLoopGroupExtension(int, String, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extensionthat provides anEventLoopGroup. - EventLoopGroupExtension(int, ThreadFactory) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
-
Creates a new
Extensionthat 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
trueif theServeris started and it has an HTTP port open. - hasHttps() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns
trueif theServeris started and it has an HTTPS port open. - httpEndpoint() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
Endpointfor 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
Endpointfor theServer. - httpSocketAddress() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
InetSocketAddressof 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
InetSocketAddressof theServer. - httpsUri() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS
URIfor theServer. - httpsUri(SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTPS
URIfor theServer. - httpUri() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
URIfor theServer. - httpUri(SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the HTTP
URIfor 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
Extensionprimarily 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
ServiceRequestContexts. - newDecorator(Predicate<? super ServiceRequestContext>) - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Creates a new decorator to capture the
ServiceRequestContexts 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
Serverfor the specifiedSessionProtocol. - privateKey() - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Returns the
PrivateKeyof 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
AggregatedHttpRequestreceived by the server. - requestContextCaptor() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
ServiceRequestContextCaptorthat captures all theServiceRequestContexts 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
RestClientconfigured byServerExtension.configureWebClient(WebClientBuilder). - restClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns a newly created
RestClientconfigured 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
Extensionthat 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
Extensionthat 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
ServiceRequestContexts. - 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
ServiceRequestContextshould be captured or not. - size() - Method in class com.linecorp.armeria.testing.server.ServiceRequestContextCaptor
-
Returns the number of captured
ServiceRequestContexts. - 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
Serverconfigured byServerExtension.configure(ServerBuilder). - stop() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Stops the
Serverasynchronously.
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
RecordedRequestthe server received. - takeRequest(int, TimeUnit) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
-
Returns the next
RecordedRequestthe server received. - tlsKeyPair() - Method in class com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension
-
Returns the
TlsKeyPairof the self-signed certificate. - 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
WebClientconfigured byServerExtension.configureWebClient(WebClientBuilder). - webClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns a newly created
WebClientconfigured byServerExtension.configureWebClient(WebClientBuilder)and then the specified customizer. - webSocketClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Returns the
WebSocketClientconfigured byServerExtension.configureWebSocketClient(WebSocketClientBuilder).
All Classes and Interfaces|All Packages