Annotation Type HttpApi
-
@Target(TYPE) @Retention(RUNTIME) @ExtendWith(JUnit5HttpApi.class) public @interface HttpApi
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends Executor>
executor
boolean
globalProxyConfiguration
Class<? extends Predicate>
headerFilter
String
logLevel
int
port
Class<? extends ResponseLocator>
responseLocator
boolean
skipProxyHeaders
Class<? extends Supplier>
sslContext
boolean
useSsl
-
-
-
Element Detail
-
port
int port
- Returns:
- the port to use for the server.
- Default:
- 0
-
-
-
globalProxyConfiguration
boolean globalProxyConfiguration
- Returns:
- should the JVM be configured with the server as a proxy.
- Default:
- true
-
-
-
responseLocator
Class<? extends ResponseLocator> responseLocator
- Returns:
- the response locator to use.
- Default:
- org.talend.sdk.component.junit.http.api.ResponseLocator.class
-
-
-
headerFilter
Class<? extends Predicate> headerFilter
- Returns:
- the header filter to use.
- Default:
- java.util.function.Predicate.class
-
-
-
sslContext
Class<? extends Supplier> sslContext
- Returns:
- the SSLContext supplier to use.
- Default:
- java.util.function.Supplier.class
-
-
-
useSsl
boolean useSsl
- Returns:
- true if a default sslContext should be created for the test.
- Default:
- false
-
-
-
skipProxyHeaders
boolean skipProxyHeaders
- Returns:
- true if the proxy shouldn't add meta headers (X-Talend) at all.
- Default:
- false
-
-