public interface YamlTester
| Modifier and Type | Field and Description |
|---|---|
static boolean |
BASE_TESTS
When enabled only the base tests are run.
|
static boolean |
REGRESS_TESTS
Enabling this will overwrite the output yaml file instead of checking it.
|
| Modifier and Type | Method and Description |
|---|---|
String |
actual() |
default Map<String,String> |
agitate(YamlAgitator agitator)
Using this test as a template, generate more tests using this YamlAgitator
|
String |
expected() |
static YamlTester |
runTest(Class<?> implClass,
String path)
Test a component implemented in a class using in.yaml comparing with out.yaml,
with optionally setup.yaml to initialise it.
|
static <T> YamlTester |
runTest(Function<T,Object> builder,
Class<T> outClass,
String path)
Test a component implemented in a class using in.yaml comparing with out.yaml,
with optionally setup.yaml to initialise it.
|
static <T> YamlTester |
runTest(Function<T,Object> builder,
Function<WireOut,T> outFunction,
String path)
Test a component implemented in a class using in.yaml comparing with out.yaml,
with optionally setup.yaml to initialise it.
|
static final boolean REGRESS_TESTS
static final boolean BASE_TESTS
static YamlTester runTest(Class<?> implClass, String path) throws AssertionError
implClass - of the implementationpath - where the yaml files can be foundAssertionError - if anything went wrongstatic <T> YamlTester runTest(Function<T,Object> builder, Class<T> outClass, String path) throws AssertionError
builder - to construct a component to be testedoutClass - the interface of outputpath - where the yaml files can be foundAssertionError - if anything went wrongstatic <T> YamlTester runTest(Function<T,Object> builder, Function<WireOut,T> outFunction, String path) throws AssertionError
builder - to construct a component to be testedoutFunction - the interface of outputpath - where the yaml files can be foundAssertionError - if anything went wrongdefault Map<String,String> agitate(YamlAgitator agitator) throws net.openhft.chronicle.core.io.IORuntimeException
agitator - to usenet.openhft.chronicle.core.io.IORuntimeException - if an IO error occursString expected()
String actual()
Copyright © 2023. All rights reserved.