@Deprecated public interface YamlTester
| Modifier and Type | Field and Description |
|---|---|
static boolean |
BASE_TESTS
Deprecated.
System property to determine whether to run only base tests.
|
static boolean |
REGRESS_TESTS
Deprecated.
System property to determine whether to overwrite the output YAML file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
actual()
Deprecated.
Retrieves the actual result string obtained after test execution.
|
Map<String,String> |
agitate(YamlAgitator agitator)
Deprecated.
Generates additional tests based on the current test configuration by using a specified YamlAgitator.
|
String |
expected()
Deprecated.
Retrieves the expected result string after test execution.
|
static YamlTester |
runTest(Class<?> implClass,
String path)
Deprecated.
Executes tests for a given implementation class using the specified YAML files.
|
static <T> YamlTester |
runTest(Function<T,Object> builder,
Class<T> outClass,
String path)
Deprecated.
Executes tests for a component built using the provided builder function.
|
static <T> YamlTester |
runTest(Function<T,Object> builder,
Function<WireOut,T> outFunction,
String path)
Deprecated.
Executes tests on a component constructed by the given builder function and outputs the result using
the provided outFunction.
|
static final boolean REGRESS_TESTS
static final boolean BASE_TESTS
static YamlTester runTest(Class<?> implClass, String path) throws AssertionError
implClass - Class of the implementation to be tested.path - Directory path where the YAML files (in.yaml, out.yaml, and setup.yaml) are located.AssertionError - If the test encounters issues or if the constructor doesn't match the expected format.static <T> YamlTester runTest(Function<T,Object> builder, Class<T> outClass, String path) throws AssertionError
T - Type parameter representing the type of the input to the builder function.builder - Function that builds the component to be tested.outClass - Interface that represents the expected output type.path - Directory path where the YAML files (in.yaml, out.yaml, and setup.yaml) are located.AssertionError - If the test encounters issues.static <T> YamlTester runTest(Function<T,Object> builder, Function<WireOut,T> outFunction, String path) throws AssertionError
T - Type parameter indicating the type accepted by the builder function.builder - Function to create the component under test.outFunction - Interface function that represents the expected output type.path - Directory path containing the YAML files (in.yaml, out.yaml, and optionally setup.yaml).AssertionError - if any discrepancy is found or if an exception occurs during test execution.Map<String,String> agitate(YamlAgitator agitator)
agitator - YamlAgitator instance used to create additional test cases.net.openhft.chronicle.core.io.IORuntimeException - if an I/O error occurs during test generation.String expected()
String actual()
Copyright © 2024. All rights reserved.