Index

A B C E G H I M N P R S T U W 
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 or AfterAll, or around each test method, like BeforeEach or AfterEach.
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 the Server 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 by ServerExtension.configureWebClient(WebClientBuilder).
blockingWebClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns a newly created BlockingWebClient configured by ServerExtension.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 Server with the given ServerBuilder.
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 given WebClientBuilder.
configureWebSocketClient(WebSocketClientBuilder) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Configures the WebSocketClient with the given WebSocketClientBuilder.
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 specified SessionProtocol for the Server.
enqueue(AggregatedHttpResponse) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
Enqueues the AggregatedHttpResponse to return to a client of this MockWebServerExtension.
enqueue(HttpResponse) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
Enqueues the HttpResponse to return to a client of this MockWebServerExtension.
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 an EventLoopGroup.
EventLoopExtension() - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
Creates a new Extension that provides an EventLoop.
EventLoopExtension(boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
Creates a new Extension that provides an EventLoop.
EventLoopExtension(String) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
Creates a new Extension that provides an EventLoop.
EventLoopExtension(String, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
Creates a new Extension that provides an EventLoop.
EventLoopExtension(ThreadFactory) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopExtension
Creates a new Extension that provides an EventLoop.
EventLoopGroupExtension - Class in com.linecorp.armeria.testing.junit5.common
An Extension that provides an EventLoopGroup.
EventLoopGroupExtension(int) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
Creates a new Extension that provides an EventLoopGroup.
EventLoopGroupExtension(int, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
Creates a new Extension that provides an EventLoopGroup.
EventLoopGroupExtension(int, String) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
Creates a new Extension that provides an EventLoopGroup.
EventLoopGroupExtension(int, String, boolean) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
Creates a new Extension that provides an EventLoopGroup.
EventLoopGroupExtension(int, ThreadFactory) - Constructor for class com.linecorp.armeria.testing.junit5.common.EventLoopGroupExtension
Creates a new Extension that provides an EventLoopGroup.

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 the Server is started and it has an HTTP port open.
hasHttps() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns true if the Server 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 the Server.
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 the Server.
httpSocketAddress() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the HTTP InetSocketAddress of the Server.
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 the Server.
httpsUri() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the HTTPS URI for the Server.
httpsUri(SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the HTTPS URI for the Server.
httpUri() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the HTTP URI for the Server.
httpUri(SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the HTTP URI for the Server.

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 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 predicate filter.

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 specified SessionProtocol.
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 the ServiceRequestContexts in this Server.
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 by ServerExtension.configureWebClient(WebClientBuilder).
restClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns a newly created RestClient configured by ServerExtension.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 a Server.
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 ServiceRequestContext should 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
Returns the InetSocketAddress of the specified SessionProtocol for the Server.
start() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Starts the Server configured by ServerExtension.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
Returns the URI for the Server of the specified SessionProtocol.
uri(SessionProtocol, SerializationFormat) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the URI for the Server of the specified SessionProtocol and SerializationFormat.

W

webClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the WebClient configured by ServerExtension.configureWebClient(WebClientBuilder).
webClient(Consumer<WebClientBuilder>) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns a newly created WebClient configured by ServerExtension.configureWebClient(WebClientBuilder) and then the specified customizer.
webSocketClient() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
Returns the WebSocketClient configured by ServerExtension.configureWebSocketClient(WebSocketClientBuilder).
A B C E G H I M N P R S T U W 
All Classes and Interfaces|All Packages