public final class TestScenario extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestScenario.Builder
Test Scenario Builder.
|
Modifier and Type | Method and Description |
---|---|
static void |
asserts(String specName,
HttpRequest<?> request,
BiConsumer<ServerUnderTest,HttpRequest<?>> assertion) |
static void |
asserts(String specName,
Map<String,Object> configuration,
HttpRequest<?> request,
BiConsumer<ServerUnderTest,HttpRequest<?>> assertion) |
static TestScenario.Builder |
builder() |
public static void asserts(String specName, Map<String,Object> configuration, HttpRequest<?> request, BiConsumer<ServerUnderTest,HttpRequest<?>> assertion) throws IOException
specName
- Value for spec.name property. Used to avoid bean pollution.configuration
- Test Scenario configurationrequest
- HTTP Request to be sent in the test scenarioassertion
- Assertion for a request and server.IOException
- Exception thrown while getting the server under test.public static void asserts(String specName, HttpRequest<?> request, BiConsumer<ServerUnderTest,HttpRequest<?>> assertion) throws IOException
specName
- Value for spec.name property. Used to avoid bean pollution.request
- HTTP Request to be sent in the test scenarioassertion
- Assertion for a request and server.IOException
- Exception thrown while getting the server under test.public static TestScenario.Builder builder()