Index

A B C D E F G H I J L M N O P Q R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractConfiguration - Class in com.github.mjeanroy.junit.servers.servers
Generic configuration that should be extended for each custom embedded server.
AbstractConfiguration() - Constructor for class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Initialize configuration with default values.
AbstractConfiguration(String, String, String, int, Map<String, String>, List<Hook>, ClassLoader, String) - Constructor for class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Initialize configuration.
AbstractConfigurationBuilder<T extends AbstractConfigurationBuilder<T,U>,U extends AbstractConfiguration> - Class in com.github.mjeanroy.junit.servers.servers
Builder for AbstractConfiguration instances, should be extended by custom configuration implementation.
AbstractConfigurationBuilder() - Constructor for class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Build default configuration.
AbstractEmbeddedServer<S,T extends AbstractConfiguration> - Class in com.github.mjeanroy.junit.servers.servers
Partial implementation of an embedded server.
AbstractEmbeddedServer(T) - Constructor for class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
Build default embedded server.
AbstractHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl
Abstract skeleton of HttpClient interface.
AbstractHttpClient(HttpClientConfiguration, EmbeddedServer<?>) - Constructor for class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
Create abstract skeleton.
AbstractHttpRequest - Class in com.github.mjeanroy.junit.servers.client.impl
Abstract skeleton of HttpRequest interface.
AbstractHttpRequest(HttpUrl, HttpMethod) - Constructor for class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
Create request.
AbstractHttpResponse - Class in com.github.mjeanroy.junit.servers.client.impl
Abstract skeleton of HttpResponse interface.
AbstractHttpResponse(long) - Constructor for class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
Create the partial HTTP response implementation.
ACCEPT - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Accept header name.
ACCEPT_ENCODING - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Accept-Encoding header name.
ACCEPT_LANGUAGE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Accept-Language header name.
acceptGzip() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add Accept-Encoding header with "gzip, deflate" value.
acceptGzip() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
acceptJson() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header to specify that accept type is "application/json".
acceptJson() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
acceptLanguage(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add Accept-Language header.
acceptLanguage(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
acceptXml() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header to specify that accept type is "application/xml".
acceptXml() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
add(HttpParameter) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
Add parameter.
add(String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
Add parameter.
addAcceptEncoding(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add Accept-Encoding header.
addAcceptEncoding(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addAll(Collection<HttpParameter>) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
Add all parameters.
addAll(Map<String, String>) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
Add all parameters.
addCookie(Cookie) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add cookie to http request.
addCookie(Cookie) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addCookie(String, String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add cookie to http request.
addCookie(String, String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addCsrfToken(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add CSRF Token to http header (X-Csrf-Token header).
addCsrfToken(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addDefaultCookie(Cookie) - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Add new default cookie.
addDefaultCookie(String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Add new default cookie.
addDefaultHeader(HttpHeader) - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Add new default header: if a header with the same name as already been added, it will be overwritten with this new header.
addDefaultHeader(String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Add new default header: if a header with the same name as already been added, it will be overwritten with this new header.
addFormDataPart(HttpRequestBody, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addFormDataPart(HttpRequestBody, String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addFormDataPart(File, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addFormDataPart(File, String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addFormDataPart(String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addFormDataPart(Path, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addFormDataPart(Path, String, String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add "form-data" part.
addHeader(HttpHeader) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header.
addHeader(HttpHeader) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addHeader(String, String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header.
addHeader(String, String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addIfMatch(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add If-Match header with expected value.
addIfMatch(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addIfModifiedSince(Date) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add If-Modified-Since value with expected date (date will be translated as GMT raw).
addIfModifiedSince(Date) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addIfNoneMatch(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add If-None-Match header with expected value.
addIfNoneMatch(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addIfUnmodifiedSince(Date) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add If-Unmodified-Since value with expected date (date will be translated as GMT raw).
addIfUnmodifiedSince(Date) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addOrigin(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add Origin header.
addOrigin(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addPart(HttpRequestBodyPart) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Add part to request body.
addQueryParam(String, String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add query parameters: a query parameter is a parameter that will follow the ? character in the request URL.
addQueryParam(String, String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addQueryParams(HttpParameter, HttpParameter...) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add collection of query parameters: a query parameter is a parameter that will follow the ? character in the request URL.
addQueryParams(HttpParameter, HttpParameter...) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addReferer(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add Referer header.
addReferer(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
addValue(String) - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader.Builder
Add value to http header.
addXHttpMethodOverride(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add X-Http-Method-Override value with HTTP verb to override.
addXHttpMethodOverride(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
after() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
 
afterAll() - Method in class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
 
afterAll() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Run the AFTER step of the lifecycle test.
afterAll() - Method in interface com.github.mjeanroy.junit.servers.engine.TestRunner
Method called after all tests have been run.
afterAll(ExtensionContext) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
 
afterEach(Object) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
 
afterEach(Object) - Method in class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
 
afterEach(Object) - Method in interface com.github.mjeanroy.junit.servers.engine.TestRunner
Method called after running unit test.
afterEach(ExtensionContext) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
 
Annotations - Class in com.github.mjeanroy.junit.servers.commons.reflect
Static Annotation Utilities.
AnnotationsHandlerRunner - Class in com.github.mjeanroy.junit.servers.engine
An engine that will handle various annotations defined by Junit-Servers: TestServer TestServerConfiguration TestHttpClient
AnnotationsHandlerRunner(EmbeddedServer<?>, AbstractConfiguration) - Constructor for class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
Create test lifecycle engine that will setup following Junit-Servers annotations declared in test class: TestServer TestServerConfiguration TestHttpClient
APACHE_HTTP_CLIENT - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Build http client using ApacheHttpClient library.
ApacheHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl.apache
Implementation of HttpClient using apache http client library under the hood.
append(String, Boolean) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new boolean value.
append(String, Integer) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new integer value.
append(String, Iterable<T>) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new boolean value.
append(String, Long) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new long value.
append(String, Object) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new object value.
append(String, String) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new string value.
append(String, Path) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new Path value.
append(String, Map<?, ?>) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Append new map value.
APPLICATION_FORM_URL_ENCODED - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for HTML forms.
APPLICATION_JSON - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The JSON media type.
APPLICATION_OCTET_STREAM - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for binary data.
APPLICATION_PDF - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for PDF Documents.
APPLICATION_XML - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The XML media type.
asEncodedString() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Serialize parameter to the key=value format, and url encode name and value.
asFormUrlEncoded() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header to specify that content type is "application/x-www-form-urlencoded".
asFormUrlEncoded() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
asJson() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header to specify that content type is "application/json".
asJson() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
asMultipartAlternative() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Update content-type to "multipart/alternative".
asMultipartDigest() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Update content-type to "multipart/digest".
asMultipartFormData() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Update content-type to "multipart/form-data".
asMultipartMixed() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Update content-type to "multipart/mixed".
asMultipartParallel() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Update content-type to "multipart/parallel".
asXml() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add header to specify that content type is "application/xml".
asXml() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
asXmlHttpRequest() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Most library (such as jQuery) add automatically header named "X-Requested-With" with value "XMLHttpRequest", this method add this header and can be used to simulate ajax call.
asXmlHttpRequest() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
ASYNC_HTTP_CLIENT - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Build http client using AsyncHttpClient library.
AsyncHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl.async
Implementation of HttpClient using async-http-client under the hood.
AUTO - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Detect class available on classpath and use appropriate strategy to build http client client implementation: Try HttpClientStrategy.OK_HTTP3. Try HttpClientStrategy.ASYNC_HTTP_CLIENT. Try HttpClientStrategy.NING_ASYNC_HTTP_CLIENT. Try HttpClientStrategy.APACHE_HTTP_CLIENT.

B

before() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
 
beforeAll() - Method in class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
 
beforeAll() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Run the BEFORE step of the lifecycle test.
beforeAll() - Method in interface com.github.mjeanroy.junit.servers.engine.TestRunner
Method called before instantiating the test class and any test instance.
beforeAll(ExtensionContext) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
 
beforeEach(Object) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
 
beforeEach(Object) - Method in class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
 
beforeEach(Object) - Method in interface com.github.mjeanroy.junit.servers.engine.TestRunner
Method called before running unit test.
beforeEach(ExtensionContext) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
 
body - Variable in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
The request body.
body() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Http response body.
body() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
build() - Method in class com.github.mjeanroy.junit.servers.annotations.TestHttpClient.DefaultHttpClientConfigurationFactory
 
build() - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Create the cookie.
build() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Create new client configuration.
build() - Method in interface com.github.mjeanroy.junit.servers.client.HttpClientConfigurationFactory
Create configuration.
build() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader.Builder
Build HTTP header instance.
build() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
Build request body.
build() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Build multipart body.
build() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
Create immutable HttpUrl instance from current field values.
build() - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Build the final string.
build() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Build the final configuration instance.
build(HttpClientConfiguration, EmbeddedServer<? extends AbstractConfiguration>) - Method in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Return the http client implementation.
build(EmbeddedServer<? extends AbstractConfiguration>) - Method in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Return the http client implementation.
builder(String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Create builder for HttpHeader.
Builder() - Constructor for class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Create builder with default values.
Builder() - Constructor for class com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
Create builder.
Builder(String, String) - Constructor for class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Create the builder with a cookie name and value.
buildRequest(HttpMethod, HttpUrl) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
Build request object.
buildRequest(HttpMethod, HttpUrl) - Method in class com.github.mjeanroy.junit.servers.client.impl.apache.ApacheHttpClient
 
buildRequest(HttpMethod, HttpUrl) - Method in class com.github.mjeanroy.junit.servers.client.impl.async.AsyncHttpClient
 
buildRequest(HttpMethod, HttpUrl) - Method in class com.github.mjeanroy.junit.servers.client.impl.ning.NingAsyncHttpClient
 
buildRequest(HttpMethod, HttpUrl) - Method in class com.github.mjeanroy.junit.servers.client.impl.okhttp3.OkHttpClient
 

C

CACHE_CONTROL - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Cache-Control header name.
canEqual(AbstractHttpResponse) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
Ensure that given object o can be equal to this.
canEqual(AbstractHttpResponse) - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
canEqual(Object) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Ensure that an object can be equal to the current instance.
Classes - Class in com.github.mjeanroy.junit.servers.commons.reflect
Static class utilities.
classRules() - Method in class com.github.mjeanroy.junit.servers.junit4.JunitServerRunner
 
Collections - Class in com.github.mjeanroy.junit.servers.commons.lang
Static collection utilities.
com.github.mjeanroy.junit.servers.annotations - package com.github.mjeanroy.junit.servers.annotations
 
com.github.mjeanroy.junit.servers.client - package com.github.mjeanroy.junit.servers.client
 
com.github.mjeanroy.junit.servers.client.impl - package com.github.mjeanroy.junit.servers.client.impl
 
com.github.mjeanroy.junit.servers.client.impl.apache - package com.github.mjeanroy.junit.servers.client.impl.apache
 
com.github.mjeanroy.junit.servers.client.impl.async - package com.github.mjeanroy.junit.servers.client.impl.async
 
com.github.mjeanroy.junit.servers.client.impl.ning - package com.github.mjeanroy.junit.servers.client.impl.ning
 
com.github.mjeanroy.junit.servers.client.impl.okhttp3 - package com.github.mjeanroy.junit.servers.client.impl.okhttp3
 
com.github.mjeanroy.junit.servers.commons.core - package com.github.mjeanroy.junit.servers.commons.core
 
com.github.mjeanroy.junit.servers.commons.io - package com.github.mjeanroy.junit.servers.commons.io
 
com.github.mjeanroy.junit.servers.commons.lang - package com.github.mjeanroy.junit.servers.commons.lang
 
com.github.mjeanroy.junit.servers.commons.reflect - package com.github.mjeanroy.junit.servers.commons.reflect
 
com.github.mjeanroy.junit.servers.engine - package com.github.mjeanroy.junit.servers.engine
 
com.github.mjeanroy.junit.servers.exceptions - package com.github.mjeanroy.junit.servers.exceptions
 
com.github.mjeanroy.junit.servers.junit4 - package com.github.mjeanroy.junit.servers.junit4
 
com.github.mjeanroy.junit.servers.jupiter - package com.github.mjeanroy.junit.servers.jupiter
 
com.github.mjeanroy.junit.servers.loggers - package com.github.mjeanroy.junit.servers.loggers
 
com.github.mjeanroy.junit.servers.servers - package com.github.mjeanroy.junit.servers.servers
 
CompositeClassLoader - Class in com.github.mjeanroy.junit.servers.commons.core
A composite classloader is a classloader that has: A parent classloader. A fallback classloader. When resolving classes or resources, the parent classloader is consulted first, and if that classloader cannot find the class (or resource), the fallback classloader is tried.
CompositeClassLoader(ClassLoader, ClassLoader) - Constructor for class com.github.mjeanroy.junit.servers.commons.core.CompositeClassLoader
Create the classloader.
concatenatePath(String, String) - Static method in class com.github.mjeanroy.junit.servers.commons.core.Urls
Concatenate two path value.
configuration - Variable in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
Server configuration.
configuration() - Element in annotation type com.github.mjeanroy.junit.servers.annotations.TestHttpClient
A configuration factory to use to create configuration for given HTTP Client.
containsHeader(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Check that given header is available.
containsHeader(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
CONTENT_DISPOSITION - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Content-Disposition header name.
CONTENT_ENCODING - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Content-Encoding header name.
CONTENT_SECURITY_POLICY - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Content-Security-Policy header name.
CONTENT_TYPE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Content-Type header name.
cookie(String, String) - Static method in class com.github.mjeanroy.junit.servers.client.Cookies
Create cookie with a name and a value, all other parameters will use the default values: The webapp path is initialized with "src/main/webapp" The path is initialized with "/" The port is initialized with zero. The cookie is not secured. The cookie is not http-only. The cookie max-age is null. .
cookie(String, String, String, String, Long, Long, boolean, boolean) - Static method in class com.github.mjeanroy.junit.servers.client.Cookies
Create cookie.
Cookie - Class in com.github.mjeanroy.junit.servers.client
Default implementation for cookie object.
COOKIE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Cookie header name.
Cookie.Builder - Class in com.github.mjeanroy.junit.servers.client
Builder to create Cookie instances.
cookies - Variable in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
Cookie elements.
Cookies - Class in com.github.mjeanroy.junit.servers.client
Static cookie utilities.
create(Class<?>) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
Create initial builder.
CRLF - Static variable in class com.github.mjeanroy.junit.servers.commons.io.Ios
The CRLF character (a.k.a "\r\n").

D

Dates - Class in com.github.mjeanroy.junit.servers.commons.lang
Static date utilities.
debug(String) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "DEBUG" level.
debug(String, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "DEBUG" level and interpolate parameter to log message..
debug(String, Object, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "DEBUG" level and interpolate parameters to log message..
defaultApacheHttpClient(EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.apache.ApacheHttpClient
Create new http client using default internal client.
defaultAsyncHttpClient(EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.async.AsyncHttpClient
Create new http client using default internal http client.
defaultAsyncHttpClient(EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.ning.NingAsyncHttpClient
Create new http client using internal http client from async-http-client library.
defaultConfiguration() - Static method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
Get the default configuration.
DefaultHttpClientConfigurationFactory() - Constructor for class com.github.mjeanroy.junit.servers.annotations.TestHttpClient.DefaultHttpClientConfigurationFactory
 
DefaultHttpResponse - Class in com.github.mjeanroy.junit.servers.client.impl
A simple implementation of HttpResponse.
defaultOkHttpClient(EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.okhttp3.OkHttpClient
Create new http client using internal http client from ok-http library.
DELETE - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpMethod
The DELETE HTTP method.
destroy() - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Destroy client.
destroy() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
disableFollowRedirect() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Disable follow redirection handling.
doDestroy() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
Effectively destroy HTTP Client.
doDestroy() - Method in class com.github.mjeanroy.junit.servers.client.impl.apache.ApacheHttpClient
 
doDestroy() - Method in class com.github.mjeanroy.junit.servers.client.impl.async.AsyncHttpClient
 
doDestroy() - Method in class com.github.mjeanroy.junit.servers.client.impl.ning.NingAsyncHttpClient
 
doDestroy() - Method in class com.github.mjeanroy.junit.servers.client.impl.okhttp3.OkHttpClient
 
doesNotContainNull(Iterable<T>, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Preconditions
Check that given iterable does not contain any null values.
doExecute() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
Execute request.
doGetPort() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
Get port once server is started.
domain(String) - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Update cookie domain.
doStart() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
Start embedded server.
doStop() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
Stop embedded server.
DuplicateConfigurationException - Exception in com.github.mjeanroy.junit.servers.exceptions
Error thrown when multiple server configuration are detected in given test class.
DuplicateConfigurationException(String) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.DuplicateConfigurationException
Create exception.

E

EmbeddedServer<T extends AbstractConfiguration> - Interface in com.github.mjeanroy.junit.servers.servers
Specification of embedded server.
EmbeddedServerProvider<T extends AbstractConfiguration> - Interface in com.github.mjeanroy.junit.servers.servers
Factory used to create EmbeddedServerProvider (should be used with SPI).
EmbeddedServerRunner - Class in com.github.mjeanroy.junit.servers.engine
An engine that will handle the embedded server lifecycle: Start embedded server before running any tests. Stop embedded server after all tests are run.
EmbeddedServerRunner() - Constructor for class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Create rule with default embedded server.
EmbeddedServerRunner(AbstractConfiguration) - Constructor for class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Create rule with embedded server configuration.
EmbeddedServerRunner(EmbeddedServer<?>) - Constructor for class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Create rule with an embedded server.
enableFollowRedirect() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration.Builder
Enable follow redirection handling.
Encoders - Class in com.github.mjeanroy.junit.servers.commons.core
Static encoding utilities.
ensureAbsolutePath(String) - Static method in class com.github.mjeanroy.junit.servers.commons.core.Urls
Ensure that given path is an absolute path (i.e starts with '/'.
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.Cookie
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyPart
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
equals(Object) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
 
error(String) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "ERROR" level.
error(String, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "ERROR" level and interpolate parameter to log message..
error(String, Object, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "ERROR" level and interpolate parameters to log message..
error(String, Throwable) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "ERROR" level and print given exception stacktrace.
ETAG - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The ETag header name.
execute() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Execute request and return http response: execution is synchronous and will block until response is available.
execute() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
executeJson() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Execute request and return http response: execution is synchronous and will block until response is available.
executeJson() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
executeXml() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Execute request and return http response: execution is synchronous and will block until response is available.
executeXml() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
expires(long) - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Update cookie expires value.

F

fileBody(File) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file.
fileBody(File, String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file.
fileBody(Path) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file.
fileBody(Path, String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file.
finalize() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
findAllFields(Class<?>) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Get all fields on given object and look for fields of super classes.
findAnnotation(Class<?>, Class<T>) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Annotations
Find expected annotation on class, or a class in the hierarchy.
findAnnotation(Field, Class<T>) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Annotations
Find expected annotation on given field, or a class in the hierarchy.
findAnnotations(Field) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Annotations
Find all annotations on given field.
findClass(String) - Method in class com.github.mjeanroy.junit.servers.commons.core.CompositeClassLoader
 
findConfiguration(Class<?>) - Static method in class com.github.mjeanroy.junit.servers.engine.Servers
Find configuration object on static field / method on running class.
findResource(String) - Method in class com.github.mjeanroy.junit.servers.commons.core.CompositeClassLoader
 
findStaticFieldsAnnotatedWith(Class<?>, Class<? extends Annotation>) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Get all static fields on given class object annotated with given annotation.
findStaticMethodsAnnotatedWith(Class<?>, Class<? extends Annotation>) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Get all static methods on given class object annotated with given annotation.
firstNonNull(T, T) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Objects
Get first object that is not null, may returns null if both parameter are.
format(Date, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Dates
Format date according to given pattern.
formBuilder() - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create builder that can be used to create form urlencoded request body.
formUrlEncodedBody(HttpParameter, HttpParameter...) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create form urlencoded body from given parameters.
formUrlEncodedBody(Collection<HttpParameter>) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create form urlencoded body from given parameters.
formUrlEncodedBody(Map<String, String>) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create form urlencoded body from given parameters.

G

GET - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpMethod
The GET HTTP method.
getBody() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequestBody
The request body.
getBody() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
 
getCacheControl() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Cache-Control header from http response.
getCacheControl() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getClasspath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.classpath.
getClasspath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.classpath.
getClient() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Returns HTTP client that can be used against EmbeddedServerRunner.server.
getClient() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Returns HTTP client that can be used against embedded server.
getClient(HttpClientConfiguration) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Returns HTTP client that can be used against EmbeddedServerRunner.server.
getClient(HttpClientStrategy) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Returns HTTP client that can be used against EmbeddedServerRunner.server.
getClient(HttpClientStrategy, HttpClientConfiguration) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Returns HTTP client that can be used against EmbeddedServerRunner.server.
getConfiguration() - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Get the client configuration.
getConfiguration() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
getConfiguration() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
getConfiguration() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Return server configuration.
getContentEncoding() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Content-Encoding header from http response.
getContentEncoding() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getContentSecurityPolicy() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Content-Security-Policy header from http response.
getContentSecurityPolicy() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getContentType() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequestBody
The request body content type, may be null.
getContentType() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
 
getContentType() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Content-Type header from http response.
getContentType() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getCookie(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get cookie by its name (if cookie is missing, null is returned).
getCookie(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getCookies() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get all cookies sent by server.
getCookies() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getDefaultCookies() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
Get HttpClientConfiguration.defaultCookies (non-modifiable list).
getDefaultHeaders() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
Get HttpClientConfiguration.defaultHeaders (non-modifiable map).
getDelegate() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
Get internal server implementation.
getDomain() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Get cookie domain.
getEncodedName() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Get the URL encoded parameter name.
getEncodedValue() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Get the URL encoded parameter value.
getEndpoint() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Request URL.
getEndpoint() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
getEnvProperties() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.envProperties as a non-modifiable map.
getEnvProperties() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.envProperties.
getETag() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get ETag header from http response.
getETag() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getExpires() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Get cookie expires value.
getFirstValue() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Get first value of header.
getHeader(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get header from HTTP response (if header is missing, null will be returned).
getHeader(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
getHeaders() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get the list of headers.
getHeaders() - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
getHooks() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.hooks as a non-modifiable list.
getHooks() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.hooks.
getHost() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
Get URL Host.
getHost() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Get embedded server scheme (should be "localhost").
getHost() - Method in exception com.github.mjeanroy.junit.servers.exceptions.UrlException
The host used to build malformed URL.
getHost() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Get embedded server scheme (should be "localhost").
getHost() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
getHost() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Get the host, should be "localhost", unless specific configuration.
getLastModified() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Last-Modified header from http response.
getLastModified() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getLastValue() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Get last value of header.
getLocation() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Location header from http response.
getLocation() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getLogger(Class<?>) - Static method in class com.github.mjeanroy.junit.servers.loggers.LoggerFactory
Create logger from given class (class name will be used as logger name).
getMaxAge() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Cookie max age.
getMethod() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Return http request method.
getMethod() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
getName() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Get cookie name.
getName() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Get header name.
getName() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Get HttpParameter.name.
getOverrideDescriptor() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.overrideDescriptor.
getOverrideDescriptor() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.overrideDescriptor.
getParameters() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
Get HttpRequestBodyForm.parameters
getParentClassLoader() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.parentClassLoader, as a non-modifiable collection.
getParentClassLoader() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.parentClassLoader.
getPath() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Get cookie path.
getPath() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
Get URL Path.
getPath() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Get path defined on embedded server.
getPath() - Method in exception com.github.mjeanroy.junit.servers.exceptions.UrlException
The path used to build malformed URL.
getPath() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Get path defined on embedded server.
getPath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.path.
getPath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.path.
getPath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
getPath() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Get server context path.
getPort() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
Get URL Port.
getPort() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Get port used by embedded server.
getPort() - Method in exception com.github.mjeanroy.junit.servers.exceptions.UrlException
The port used to build malformed URL.
getPort() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Get port used by embedded server.
getPort() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.port.
getPort() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.port.
getPort() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
getPort() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Get port used by embedded server.
getRequestDuration() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get duration of request execution in nano seconds.
getRequestDuration() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getRequestDurationInMillis() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get duration of request execution in milli seconds (shortcut for getRequestDuration() / 100).
getRequestDurationInMillis() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getScheme() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
Get URL Scheme.
getScheme() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Get embedded server scheme (a.k.a "http" or "https").
getScheme() - Method in exception com.github.mjeanroy.junit.servers.exceptions.UrlException
The scheme used to build malformed URL.
getScheme() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Get embedded server scheme (a.k.a "http" or "https").
getScheme() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
getScheme() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Get the protocol scheme ("http", "https").
getServer() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
Get AbstractHttpClient.server
getServer() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Get embedded server.
getServer() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Get embedded server.
getServletContext() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Get servlet context used within container.
getStrictTransportSecurity() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get Strict-Transport-Security header from http response.
getStrictTransportSecurity() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getter(Object, Field) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Get value of field on target object.
getter(Field) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Get value of static field.
getTestRules(Object) - Method in class com.github.mjeanroy.junit.servers.junit4.JunitServerRunner
 
getTime(String, String, String...) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Dates
Parse date using given pattern and return time value.
getUrl() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Get url used to query embedded server.
getUrl() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Get url used to query embedded server.
getUrl() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
getUrl() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Get URL to query embedded server.
getValue() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Get cookie value.
getValue() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Get HttpParameter.value.
getValues() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Get header values (returned list is not modifiable).
getVerb() - Method in enum com.github.mjeanroy.junit.servers.client.HttpMethod
Get formatted http verb: Always in upper case. Related to given HTTP method.
getWebapp() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
Get AbstractConfiguration.webapp.
getWebapp() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Get current AbstractConfigurationBuilder.webapp.
getXContentSecurityPolicy() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get X-Content-Security-Policy header from http response: this header was initially an experimental header implemented in Firefox.
getXContentSecurityPolicy() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getXContentTypeOptions() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get X-Content-Type-Options header from http response.
getXContentTypeOptions() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getXWebkitCSP() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get X-Webkit-CSP header from http response: this header was initially an experimental header implemented in Webkit browser (Chrome and Safari).
getXWebkitCSP() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
getXXSSProtection() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Get X-XSS-Protection header from http response.
getXXSSProtection() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
guessContentType(Path) - Static method in class com.github.mjeanroy.junit.servers.commons.io.Ios
Try to guess content type of given file.

H

hasBody() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
Check if the request have a body content (form parameters or request body value).
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyPart
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
hashCode() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
 
HEAD - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpMethod
The HEAD HTTP method.
header(String, String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Create a header with a single value.
header(String, Collection<String>) - Static method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Create a header with multiple values.
headers - Variable in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
HTTP Headers.
Hook - Interface in com.github.mjeanroy.junit.servers.servers
Hook that will be invoked: Before server is started. Just after server is started. After server is stopped.
HttpClient - Interface in com.github.mjeanroy.junit.servers.client
Http client that can be used to query embedded server.
HttpClientConfiguration - Class in com.github.mjeanroy.junit.servers.client
HTTP Client configuration that can be used to configure instances of HttpClient.
HttpClientConfiguration.Builder - Class in com.github.mjeanroy.junit.servers.client
Builder for HttpClientConfiguration class.
HttpClientConfigurationFactory - Interface in com.github.mjeanroy.junit.servers.client
HttpClientException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when http request throws exception (such as IOException).
HttpClientException(Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.HttpClientException
Create exception.
HttpClientProvider - Interface in com.github.mjeanroy.junit.servers.client
A provider that can be implemented to provide custom HttpClient using the standard SPI.
HttpClientStrategy - Enum in com.github.mjeanroy.junit.servers.client
Available strategies that can be used to build appropriate implementation of http client.
HttpHeader - Class in com.github.mjeanroy.junit.servers.client
Http getHeader representation.
HttpHeader.Builder - Class in com.github.mjeanroy.junit.servers.client
Builder for HttpHeader.
HttpHeaders - Class in com.github.mjeanroy.junit.servers.client
Set of constants and utilities for HTTP headers.
HttpMethod - Enum in com.github.mjeanroy.junit.servers.client
Http methods available with abstract client.
httpOnly(boolean) - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Update cookie http-only flag.
HttpParameter - Class in com.github.mjeanroy.junit.servers.client
Parameter object that could be sent in an http request as: Query parameters (following ? character in URL. Form parameters (such as HTML forms, with MediaType.APPLICATION_FORM_URL_ENCODED media type).
HttpRequest - Interface in com.github.mjeanroy.junit.servers.client
HTTP request.
HttpRequestBodies - Class in com.github.mjeanroy.junit.servers.client
Request Body Factories.
HttpRequestBody - Interface in com.github.mjeanroy.junit.servers.client
HTTP Request Body.
HttpRequestBodyForm - Class in com.github.mjeanroy.junit.servers.client
An implementation of HttpRequestBody for form url-encoded request bodies.
HttpRequestBodyFormBuilder - Class in com.github.mjeanroy.junit.servers.client
A builder for HttpRequestBodyForm.
HttpRequestBodyMultipartBuilder - Class in com.github.mjeanroy.junit.servers.client
A builder for HttpRequestBodyMultipart request.
HttpRequestBodyPart - Class in com.github.mjeanroy.junit.servers.client
An implementation of HttpRequestBody for "multipart/form-data" request bodies.
HttpResponse - Interface in com.github.mjeanroy.junit.servers.client
Http response, defined by: A status code: http return code (i.e 200, 400, 500 etc.). A response body: this is the body of the http response as textual representation. A set of headers. Duration: time to produce http response.
HttpUrl - Class in com.github.mjeanroy.junit.servers.client
URL object without: Authority part. Query string. Fragment.
HttpUrl.Builder - Class in com.github.mjeanroy.junit.servers.client
Builder used to create HttpUrl instances.

I

IF_MATCH - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The If-Match header name.
IF_MODIFIED_SINCE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The If-Modified-Since header name.
IF_NONE_MATCH - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The If-None-Match header name.
IF_UNMODIFIED_SINCE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The If-Unmodified-Since header name.
IllegalConfigurationException - Exception in com.github.mjeanroy.junit.servers.exceptions
Error thrown when server configuration is not valid.
IllegalConfigurationException(String) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.IllegalConfigurationException
Create exception.
IMAGE_JPG - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for JPEG Images.
IMAGE_PNG - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for PNG Images.
info(String) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "INFO" level.
info(String, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "INFO" level and interpolate parameter to log message..
info(String, Object, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "INFO" level and interpolate parameters to log message..
instantiate() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServerProvider
Instantiate embedded server with default configuration.
instantiate(HttpClientConfiguration, EmbeddedServer<? extends AbstractConfiguration>) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClientProvider
Instantiate strategy with custom configuration.
instantiate(EmbeddedServer<? extends AbstractConfiguration>) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClientProvider
Instantiate strategy.
instantiate(Class<?>) - Static method in class com.github.mjeanroy.junit.servers.engine.Servers
Instantiate jetty or tomcat embedded server.
instantiate(Class<T>) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Classes
Instantie new class instance using its empty constructor (may be a private constructor).
instantiate(T) - Static method in class com.github.mjeanroy.junit.servers.engine.Servers
Instantiate jetty or tomcat embedded server.
instantiate(T) - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServerProvider
Instantiate embedded server with given configuration.
instantiateServer(Class<?>, AbstractConfiguration) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
Instantiate server (implementation to use is automatically detected using the Service Provider API).
invoke(Method) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Invoke the static method without any arguments.
Ios - Class in com.github.mjeanroy.junit.servers.commons.io
Static I/O Utilities.
isBodyAllowed() - Method in enum com.github.mjeanroy.junit.servers.client.HttpMethod
Check if request method allow body request (as form url encoded parameter or as json / xml body).
isDestroyed() - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Check that HTTP client has been destroyed.
isDestroyed() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
isDestroyed() - Method in class com.github.mjeanroy.junit.servers.client.impl.apache.ApacheHttpClient
 
isDestroyed() - Method in class com.github.mjeanroy.junit.servers.client.impl.async.AsyncHttpClient
 
isDestroyed() - Method in class com.github.mjeanroy.junit.servers.client.impl.ning.NingAsyncHttpClient
 
isDestroyed() - Method in class com.github.mjeanroy.junit.servers.client.impl.okhttp3.OkHttpClient
 
isEmpty(Collection<?>) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Collections
Check if a collection is null or empty.
isFollowRedirect() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
Get HttpClientConfiguration.followRedirect flag.
isHttpOnly() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Cookie http-only flag.
isNotBlank(String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Strings
Check that given string is not blank.
isNotEmpty(String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Strings
Check if given string is not null and not empty.
isPostJdk9() - Static method in class com.github.mjeanroy.junit.servers.commons.core.Java
Check if runtime java version is at least Java 9.
isPresent(String) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Classes
Check if a given class is available in classpath.
isSecure() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
Cookie secure flag.
isStarted() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Check if embedded server is started.
isStarted() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Check if embedded server is started.
isStarted() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
isStarted() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Check if embedded server is started.

J

Java - Class in com.github.mjeanroy.junit.servers.commons.core
Static Java Utilities.
jpeg(File) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file, defined with "image/jpeg" content type.
jpeg(Path) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given path, defined with "image/jpeg" content type.
jsonBody(String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given raw string and "application/json" content type.
JunitServerExtension - Class in com.github.mjeanroy.junit.servers.jupiter
Extension for Junit Jupiter.
JunitServerExtension() - Constructor for class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
Create the jupiter with default server that will be automatically detected using the Service Provider API.
JunitServerExtension(AbstractConfiguration) - Constructor for class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
Create the jupiter with given server configuration.
JunitServerExtension(EmbeddedServer<?>) - Constructor for class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
Create the jupiter with given server to start/stop before/after tests.
JunitServerRunner - Class in com.github.mjeanroy.junit.servers.junit4
Runner that will start and stop embedded server before tests.
JunitServerRunner(Class<?>) - Constructor for class com.github.mjeanroy.junit.servers.junit4.JunitServerRunner
Create runner starting an embedded server.
JunitServerRunner(Class<?>, EmbeddedServer<?>) - Constructor for class com.github.mjeanroy.junit.servers.junit4.JunitServerRunner
Create runner with given embedded server.

L

LAST_MODIFIED - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Last-Modified header name.
LOCATION - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Location header name.
Logger - Interface in com.github.mjeanroy.junit.servers.loggers
Logger abstraction.
LoggerFactory - Class in com.github.mjeanroy.junit.servers.loggers
Static Logger Factory.

M

maxAge(long) - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Update cookie max-age.
MediaType - Class in com.github.mjeanroy.junit.servers.client
Set of constants and utilities for Media Type (a.k.a Content Type).
MULTIPART_ALTERNATIVE - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
A media type for multipart request.
MULTIPART_DIGEST - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
A media type for multipart request.
MULTIPART_FORM_DATA - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for file upload.
MULTIPART_MIXED - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
A media type for multipart request.
MULTIPART_PARALLEL - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
A media type for multipart request.
multipartBuilder() - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create builder that can be used to create multipart request body.

N

newApacheHttpClient(HttpClientConfiguration, EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.apache.ApacheHttpClient
Create new http client using custom configuration.
newAsyncHttpClient(HttpClientConfiguration, EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.async.AsyncHttpClient
Create new http client using custom configuration.
newAsyncHttpClient(HttpClientConfiguration, EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.ning.NingAsyncHttpClient
Create new http client using custom configuration.
newOkHttpClient(HttpClientConfiguration, EmbeddedServer<?>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.okhttp3.OkHttpClient
Create new http client using custom configuration.
NING_ASYNC_HTTP_CLIENT - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Build http client using (Ning) AsyncHttpClient library.
NingAsyncHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl.ning
Implementation of HttpClient using (Ning) async-http-client under the hood.
notBlank(String, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Preconditions
Check that a given string value is not blank (i.e not null, not empty and not blank).
notEmpty(Collection<T>, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Preconditions
Check that given collection is not empty (i.e null or with a size equal to zero).
notNull(T, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Preconditions
Check that a given value is not null.
nullToEmpty(String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Strings
Returns empty string if value is null, returns value otherwise.

O

Objects - Class in com.github.mjeanroy.junit.servers.commons.lang
Static Object Utilities.
of(long, int, String, Collection<HttpHeader>) - Static method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
Create a default HTTP Response from given values.
of(String, String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Create a header with a single value.
of(String, String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Create new parameter object.
of(String, Collection<String>) - Static method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Create a header with multiple values.
OK_HTTP3 - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Build http client using OkHttp library.
OkHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl.okhttp3
Implementation of HttpClient using OkHttp library from Square.
onStarted(EmbeddedServer<?>, ServletContext) - Method in interface com.github.mjeanroy.junit.servers.servers.Hook
Method invoked when server is fully started.
ORIGIN - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Origin header name.
overrideDelete() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add X-Http-Method-Override value with DELETE value.
overrideDelete() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
overridePut() - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add @{code X-Http-Method-Override} value with PUT value.
overridePut() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 

P

param(String, String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpParameter
Create new parameter object.
parse(String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpUrl
Parse URL string to create new HttpUrl instance.
PATCH - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpMethod
The PATCH HTTP method.
path(String) - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Update cookie path.
pdf(File) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file, defined with "application/pdf" content type.
pdf(Path) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given path, defined with "application/pdf" content type.
png(File) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given file, defined with "image/png" content type.
png(Path) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given path, defined with "image/png" content type.
positive(int, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Preconditions
Check that a given integer is positive.
positive(long, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Preconditions
Check that a given long value is positive.
post(EmbeddedServer<?>) - Method in interface com.github.mjeanroy.junit.servers.servers.Hook
Method invoked before server stops.
POST - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpMethod
The POST HTTP method.
pre(EmbeddedServer<?>) - Method in interface com.github.mjeanroy.junit.servers.servers.Hook
Method invoked before server starts.
Preconditions - Class in com.github.mjeanroy.junit.servers.commons.lang
Static utilities that can be used to check object's values.
prepareDelete(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create DELETE request.
prepareDelete(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
prepareGet(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create GET request.
prepareGet(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
prepareHead(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create HEAD request.
prepareHead(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
preparePatch(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create PATCH request.
preparePatch(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
preparePatch(String, HttpRequestBody) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create PATCH request.
preparePatch(String, HttpRequestBody) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
preparePost(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create POST request.
preparePost(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
preparePost(String, HttpRequestBody) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create POST request.
preparePost(String, HttpRequestBody) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
preparePut(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create PUT request.
preparePut(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
preparePut(String, HttpRequestBody) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create PUT request.
preparePut(String, HttpRequestBody) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
prepareRequest(HttpMethod, String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClient
Create request.
prepareRequest(HttpMethod, String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpClient
 
PUT - Enum constant in enum com.github.mjeanroy.junit.servers.client.HttpMethod
The PUT HTTP method.

Q

queryParams - Variable in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
Request parameters.

R

read(String) - Static method in class com.github.mjeanroy.junit.servers.client.Cookies
Create a cookie from header value.
readResponseBody() - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpResponse
Read HTTP Response _body as a String.
readResponseBody() - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
REFERER - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Referer header name.
ReflectionException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when reflection api throws exception (such as IllegalAccessException) in annotations handlers.
ReflectionException(Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.ReflectionException
Create exception.
Reflections - Class in com.github.mjeanroy.junit.servers.commons.reflect
Static reflection utilities.
removePrefix(String, String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Strings
Remove string prefix if and only if string value starts with the prefix, otherwise original string is returned.
requestBody(String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given raw string.
REQUESTED_WITH - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-Requested-With header name: this is non-standard header but is generally used by libraries and frameworks (such as jQuery) to give information about the HTTP request.
resolveParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
 
restart() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Restart embedded server.
restart() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Restart embedded server.
restart() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
restart() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Restart embedded server.

S

secure(boolean) - Method in class com.github.mjeanroy.junit.servers.client.Cookie.Builder
Update cookie secure flag.
secureCookie(String, String, String, String, Long, Long) - Static method in class com.github.mjeanroy.junit.servers.client.Cookies
Create a secured cookie, it means that cookie will have secure flag and http only flag set to true.
self() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
The this object, useful to get correct chaining.
serialize() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Serialize header as it should appear in raw HTTP request.
serialize(Iterable<Cookie>) - Static method in class com.github.mjeanroy.junit.servers.client.Cookies
Serialize cookies as a string that is ready to be sent to a server over an HTTP request (a.k.a value of Cookie header).
serializeValues() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
Serialize header values using the default separator.
ServerImplMissingException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when embedded server implementation is missing.
ServerImplMissingException() - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.ServerImplMissingException
Create exception.
ServerInitializationException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when server cannot be initialized.
ServerInitializationException(Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.ServerInitializationException
Create exception.
ServerRule - Class in com.github.mjeanroy.junit.servers.junit4
Rule that can be used to start and stop embedded server.
ServerRule() - Constructor for class com.github.mjeanroy.junit.servers.junit4.ServerRule
Create rule with default embedded server.
ServerRule(AbstractConfiguration) - Constructor for class com.github.mjeanroy.junit.servers.junit4.ServerRule
Create rule with embedded server configuration.
ServerRule(EmbeddedServer<?>) - Constructor for class com.github.mjeanroy.junit.servers.junit4.ServerRule
Create rule with an embedded server.
Servers - Class in com.github.mjeanroy.junit.servers.engine
Static utilities for server instantiation and configuration.
ServerStartException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when server cannot be started.
ServerStartException(Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.ServerStartException
Create exception.
ServerStatus - Enum in com.github.mjeanroy.junit.servers.servers
Flag that can be used to track server status.
ServerStopException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when server cannot be stopped.
ServerStopException(Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.ServerStopException
Create exception.
sessionCookie(String, String, String, String) - Static method in class com.github.mjeanroy.junit.servers.client.Cookies
Create a session cookie, it means that cookie will have secure flag and http only flag set to true and expires / max age values are set to zero.
SET_COOKIE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Set-Cookie header name.
setBody(HttpRequestBody) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Set request body.
setBody(HttpRequestBody) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
setter(Object, Field, Object) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
Set value of given field on given instance.
start() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Start embedded server.
start() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Start embedded server.
start() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
start() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Start embedded server.
STARTED - Enum constant in enum com.github.mjeanroy.junit.servers.servers.ServerStatus
Server has just been started.
STARTING - Enum constant in enum com.github.mjeanroy.junit.servers.servers.ServerStatus
Server is starting.
startsWithHttpScheme(String) - Static method in class com.github.mjeanroy.junit.servers.commons.core.Urls
Check if given url starts with HTTP scheme (i.e "http" or "https").
status() - Method in interface com.github.mjeanroy.junit.servers.client.HttpResponse
Http status code.
status() - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
stop() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
Stop embedded server.
stop() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
Stop embedded server.
stop() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractEmbeddedServer
 
stop() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServer
Stop embedded server.
STOPPED - Enum constant in enum com.github.mjeanroy.junit.servers.servers.ServerStatus
Server is stopped.
STOPPING - Enum constant in enum com.github.mjeanroy.junit.servers.servers.ServerStatus
Server is stopping.
strategy() - Element in annotation type com.github.mjeanroy.junit.servers.annotations.TestHttpClient
Get strategy to use to build http client.
STRICT_TRANSPORT_SECURITY - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The Strict-Transport-Security header name.
Strings - Class in com.github.mjeanroy.junit.servers.commons.lang
Static string utilities.
support() - Method in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Check if the strategy can be used as it is supported by the runtime environment.
supportsParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
 

T

TestHttpClient - Annotation Type in com.github.mjeanroy.junit.servers.annotations
Annotation that can be used to inject simple http client to query embedded server.
TestHttpClient.DefaultHttpClientConfigurationFactory - Class in com.github.mjeanroy.junit.servers.annotations
The default implementation, that just returns the default configuration.
TestRunner - Interface in com.github.mjeanroy.junit.servers.engine
A test adapter: this is a class that implements commons test lifecycle hooks (before-all, before, after-all, after), thus will be able to be used in various test engine: JUnit 4 Rules. JUnit 4 Runner. JUnit Jupiter Extensions.
TestServer - Annotation Type in com.github.mjeanroy.junit.servers.annotations
Annotation that can be used to inject embedded server into unit tests.
TestServerConfiguration - Annotation Type in com.github.mjeanroy.junit.servers.annotations
Annotation that can be used to specify that a given method or static field is the configuration to use on embedded container.
TEXT_PLAIN - Static variable in class com.github.mjeanroy.junit.servers.client.MediaType
The media type for file upload.
textBody(String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given raw string and "text/plain" content type.
toBytes(Path) - Static method in class com.github.mjeanroy.junit.servers.commons.io.Ios
Serialize file to an array of bytes.
toLowerCase(String) - Static method in class com.github.mjeanroy.junit.servers.commons.lang.Strings
Returns the lowercase value of a given string: Returns null if value is null. Returns the result of String.toLowerCase() otherwise.
toString() - Method in class com.github.mjeanroy.junit.servers.client.Cookie
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpParameter
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyPart
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.impl.apache.ApacheHttpClient
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.impl.async.AsyncHttpClient
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.impl.DefaultHttpResponse
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.impl.ning.NingAsyncHttpClient
 
toString() - Method in class com.github.mjeanroy.junit.servers.client.impl.okhttp3.OkHttpClient
 
toString() - Method in class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
 
toString() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
 
toString() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
 
toString() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
 
ToStringBuilder - Class in com.github.mjeanroy.junit.servers.commons.lang
Static utility to create easily toString implementation.
toURI() - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl
Create new URI from URL fields.
toUtf8Bytes(String) - Static method in class com.github.mjeanroy.junit.servers.commons.io.Ios
Serialize string to an array of bytes using UTF-8 encoding.
trace(String) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "TRACE" level.
trace(String, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "TRACE" level and interpolate parameter to log message..
trace(String, Object, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "TRACE" level and interpolate parameters to log message..

U

urlEncode(String) - Static method in class com.github.mjeanroy.junit.servers.commons.core.Encoders
Translates a string into application/x-www-form-urlencoded format using UTF-8 encoding.
UrlException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when URL cannot be built because of syntax error.
UrlException(String, String, int, String, Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.UrlException
Create the exception.
Urls - Class in com.github.mjeanroy.junit.servers.commons.core
Static URL utilities.
USER_AGENT - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The User-Agent header name.
Utf8EncodingException - Exception in com.github.mjeanroy.junit.servers.exceptions
Exception thrown when UTF-8 encoding is not supported on the runtime environment.
Utf8EncodingException(Throwable) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.Utf8EncodingException
Create the exception with original cause and a default error message.

V

valueOf(String) - Static method in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.mjeanroy.junit.servers.client.HttpMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.mjeanroy.junit.servers.servers.ServerStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.mjeanroy.junit.servers.client.HttpClientStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.mjeanroy.junit.servers.client.HttpMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.mjeanroy.junit.servers.servers.ServerStatus
Returns an array containing the constants of this enum type, in the order they are declared.

W

warn(String) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "WARN" level.
warn(String, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "WARN" level and interpolate parameter to log message..
warn(String, Object, Object) - Method in interface com.github.mjeanroy.junit.servers.loggers.Logger
Log message with "WARN" level and interpolate parameters to log message..
withBoundaries(String) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyMultipartBuilder
Define new boundaries value.
withClasspath(String) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.classpath value.
withHook(Hook) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Add new executable hook to the AbstractConfigurationBuilder.hooks list.
withHost(String) - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
Update URL Host.
withOverrideDescriptor(String) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.overrideDescriptor (path of the custom web.xml file descriptor=.
withParentClassLoader(Class<?>) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.parentClassLoader value.
withParentClasspath(URL, URL...) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.parentClassLoader value.
withParentClasspath(Collection<URL>) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.parentClassLoader value.
withPath(String) - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
Update URL Path.
withPath(String) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.path value.
withPort(int) - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
Update URL Port.
withPort(int) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.port value.
withProperty(String, String) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Add new property entry to the AbstractConfigurationBuilder.envProperties map.
withScheme(String) - Method in class com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
Update URL Scheme.
withUserAgent(String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
Add User-Agent header to http request.
withUserAgent(String) - Method in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
 
withWebapp(File) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.webapp value.
withWebapp(String) - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
Change AbstractConfigurationBuilder.webapp value.

X

X_CONTENT_SECURITY_POLICY - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-Content-Security-Policy header name: this is a non-official / non-standard header name for the Content-Security-Policy specification and was implemented in browsers before the standard CSP header.
X_CONTENT_TYPE_OPTIONS - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-Content-Type-Options header name.
X_CSRF_TOKEN - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-Csrf-Token header name.
X_HTTP_METHOD_OVERRIDE - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-Http-Method-Override header name: this is non-standard header but is generally used by libraries and frameworks to override the method specified in the template.
X_WEBKIT_CSP - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-Content-Security-Policy header name: this is a non-official / non-standard header name for the Content-Security-Policy specification and was implemented in webkit browsers before the standard CSP header.
X_XSS_PROTECTION - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The X-XSS-Protection header name.
XML_HTTP_REQUEST - Static variable in class com.github.mjeanroy.junit.servers.client.HttpHeaders
The value for HttpHeaders.REQUESTED_WITH header used by Web libraries such as jQuery.
xmlBody(String) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
Create request body from given raw string and "application/xml" content type.
A B C D E F G H I J L M N O P Q R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form