D
- data provided by a fixtureT
- fixture typepublic class Scenario<D,T extends Fixture<D>> extends Object
Fixture
-s and provides Scenario.ScenarioTestCase
-s to
run unit tests.
A scenario provides a factory method which creates TestCase.
The TestCase represents a group of tests, each test contains one action and one spec.
Scenario executes all test cases and all tests included in test cases.Modifier and Type | Class and Description |
---|---|
static class |
Scenario.ScenarioTest<T,R>
Scenario test execute an action and then check the result by a spec.
|
static class |
Scenario.ScenarioTestCase<T>
ScenarioTestCase is a ScenarioTest-s factory, represents a group of tests.
|
Modifier and Type | Method and Description |
---|---|
Scenario<D,T> |
describe(BiConsumer<T,Scenario.ScenarioTestCase<D>> testCaseFunction)
Create a new
Scenario.ScenarioTestCase |
D |
getFixtureData() |
static <D,T extends Fixture<D>> |
with(T fixture)
Create a new scenario base on a fixture
|
public D getFixtureData()
public static <D,T extends Fixture<D>> Scenario<D,T> with(T fixture)
D
- data provided by the fixtureT
- fixture typefixture
- a scenario fixturepublic Scenario<D,T> describe(BiConsumer<T,Scenario.ScenarioTestCase<D>> testCaseFunction)
Scenario.ScenarioTestCase
testCaseFunction
- provides testCase api for underlying testsCopyright © 2019 CorfuDB. All rights reserved.