Package io.micronaut.http.tck
Class TestScenario.Builder
java.lang.Object
io.micronaut.http.tck.TestScenario.Builder
- Enclosing class:
- TestScenario
Test Scenario Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassertion
(BiConsumer<ServerUnderTest, HttpRequest<?>> assertion) configuration
(Map<String, Object> configuration) request
(HttpRequest<?> request) request
(RequestSupplier request) void
run()
Runs the Test Scneario.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
specName
- Parameters:
specName
- Value for spec.name property. Used to avoid bean pollution.- Returns:
- Test Scenario builder
-
request
- Parameters:
request
- HTTP Request to be sent in the test scenario- Returns:
- The Test Scneario Builder
-
request
- Parameters:
request
- HTTP Request supplier that given a server, provides the request to be sent in the test scenario- Returns:
- The Test Scenario Builder
-
configuration
- Parameters:
configuration
- Test Scenario configuration- Returns:
- Test scenario builder
-
assertion
- Parameters:
assertion
- Assertion for a request and server.- Returns:
- The Test Scenario Builder
-
run
Runs the Test Scneario.- Throws:
IOException
- Exception thrown while getting the server under test.
-