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