- 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
-
- 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
-
- 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
-
- AbstractHttpRequest(HttpUrl, HttpMethod) - Constructor for class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
-
- AbstractHttpResponse - Class in com.github.mjeanroy.junit.servers.client.impl
-
- 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(Map<String, String>) - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyFormBuilder
-
Add all parameters.
- addAll(Collection<HttpParameter>) - 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(String, String) - 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 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(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(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(String, String) - Method in interface com.github.mjeanroy.junit.servers.client.HttpRequest
-
Add header.
- addHeader(HttpHeader) - 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
-
- addHeader(HttpHeader) - 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.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.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
-
- AnnotationsHandlerRunner(EmbeddedServer<?>, AbstractConfiguration) - Constructor for class com.github.mjeanroy.junit.servers.engine.AnnotationsHandlerRunner
-
- ApacheHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl.apache
-
Implementation of
HttpClient using apache http client
library under the hood.
- append(String, String) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new string value.
- append(String, Integer) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new integer value.
- append(String, Long) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new long value.
- append(String, Boolean) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new boolean value.
- append(String, Map<?, ?>) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new map value.
- append(String, Object) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new object value.
- append(String, Iterable<T>) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
Append new boolean value.
- append(String, Path) - Method in class com.github.mjeanroy.junit.servers.commons.lang.ToStringBuilder
-
- 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
-
- 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
-
- AsyncHttpClient - Class in com.github.mjeanroy.junit.servers.client.impl.async
-
Implementation of
HttpClient using async-http-client
under the hood.
- 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.
- 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 - Class in com.github.mjeanroy.junit.servers.client
-
Default implementation for cookie object.
- 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 - 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 - Class in com.github.mjeanroy.junit.servers.client
-
Static cookie utilities.
- cookies - Variable in class com.github.mjeanroy.junit.servers.client.impl.AbstractHttpRequest
-
Cookie elements.
- 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").
- 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
-
- 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.
- 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(Map<String, String>) - 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(HttpParameter, HttpParameter...) - Static method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
-
Create form urlencoded body from given parameters.
- 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
-
- getClasspath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- getClient() - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
-
- getClient(HttpClientConfiguration) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
-
- getClient(HttpClientStrategy) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
-
- getClient(HttpClientStrategy, HttpClientConfiguration) - Method in class com.github.mjeanroy.junit.servers.engine.EmbeddedServerRunner
-
- getClient() - Method in class com.github.mjeanroy.junit.servers.junit4.ServerRule
-
Returns HTTP client that can be used against embedded 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
-
- getDefaultHeaders() - Method in class com.github.mjeanroy.junit.servers.client.HttpClientConfiguration
-
- 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
-
- getEnvProperties() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- 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
-
- getHooks() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- 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
-
- getOverrideDescriptor() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
-
- getOverrideDescriptor() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- getParameters() - Method in class com.github.mjeanroy.junit.servers.client.HttpRequestBodyForm
-
- getParentClassLoader() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
-
- getParentClassLoader() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- 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
-
- getPath() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- 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
-
- getPort() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- 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
-
- 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(Field) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
-
Get value of static field.
- getter(Object, Field) - Static method in class com.github.mjeanroy.junit.servers.commons.reflect.Reflections
-
Get value of field on target object.
- 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
-
- 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
-
- getWebapp() - Method in class com.github.mjeanroy.junit.servers.servers.AbstractConfigurationBuilder
-
- 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.
- 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
-
- 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
-
- 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
-
- 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
-
- HttpRequestBodies() - Constructor for class com.github.mjeanroy.junit.servers.client.HttpRequestBodies
-
- HttpRequestBody - Interface in com.github.mjeanroy.junit.servers.client
-
HTTP Request Body.
- HttpRequestBodyForm - Class in com.github.mjeanroy.junit.servers.client
-
- HttpRequestBodyFormBuilder - Class in com.github.mjeanroy.junit.servers.client
-
- 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.
- 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
-
- IllegalConfigurationException(String) - Constructor for exception com.github.mjeanroy.junit.servers.exceptions.IllegalConfigurationException
-
- 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(EmbeddedServer<? extends AbstractConfiguration>) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClientProvider
-
Instantiate strategy.
- instantiate(HttpClientConfiguration, EmbeddedServer<? extends AbstractConfiguration>) - Method in interface com.github.mjeanroy.junit.servers.client.HttpClientProvider
-
Instantiate strategy with custom configuration.
- 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(Class<?>) - Static method in class com.github.mjeanroy.junit.servers.engine.Servers
-
Instantiate jetty or tomcat embedded server.
- instantiate(T) - Static method in class com.github.mjeanroy.junit.servers.engine.Servers
-
Instantiate jetty or tomcat embedded server.
- instantiate() - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServerProvider
-
- instantiate(T) - Method in interface com.github.mjeanroy.junit.servers.servers.EmbeddedServerProvider
-
- 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
-
- 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.
- 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(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).
- serialize() - Method in class com.github.mjeanroy.junit.servers.client.HttpHeader
-
Serialize header as it should appear in raw HTTP request.
- 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
-
- 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
-
- 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
-
- 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.
- 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.
- 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
-
- 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..