Index
A B C E G H M P R S T U
All Classes All Packages
All Classes All Packages
All Classes 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.server.SelfSignedCertificateExtension
-
Deletes the generated
SelfSignedCertificate
. - after(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Calls
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.server.SelfSignedCertificateExtension
-
Generates a
SelfSignedCertificate
. - before(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Calls
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
- beforeTestExecution(ExtensionContext) - Method in class com.linecorp.armeria.testing.junit5.server.mock.MockWebServerExtension
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.
- 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.
- 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. - 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
- 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
.
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
.
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
P
- 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. - 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.
- 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 byconfigure(ServerBuilder)
. - stop() - Method in class com.linecorp.armeria.testing.junit5.server.ServerExtension
-
Stops the
Server
asynchronously.
T
- 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
All Classes All Packages