T - The type parameter for the tested method's output.public class YamlMethodTester<T> extends TextMethodTester<T>
TextMethodTester for testing methods with YAML-based wire format.TextMethodTester.PostSetupDEFAULT_INVOCATION_TARGET_RUNTIME_EXCEPTION_CONSUMER, SINGLE_THREADED_CHECK_DISABLEDBASE_TESTS, REGRESS_TESTS| Constructor and Description |
|---|
YamlMethodTester(String input,
Function<T,Object> componentFunction,
Class<T> outputClass,
String output)
Constructs a new
YamlMethodTester instance with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
protected Wire |
createWire(net.openhft.chronicle.bytes.Bytes<?> bytes)
Creates a
Wire instance based on the provided bytes. |
actual, addOutputClass, afterRun, afterRun, agitate, createWire, exceptionHandlerFunction, exceptionHandlerFunctionAndLog, exceptionHandlerSetup, exceptionHandlerSetup, expected, genericEvent, genericEvent, inputFunction, loadLastValues, methodReaderInterceptorReturns, onInvocationException, onInvocationException, readOne, resourceExists, retainLast, retainLast, run, setup, setup, setups, testFilter, timeoutMS, updateInterceptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunTest, runTest, runTestpublic YamlMethodTester(String input, Function<T,Object> componentFunction, Class<T> outputClass, String output)
YamlMethodTester instance with the given parameters.input - The input text to be used for testing.componentFunction - The function mapping to the method/component being tested.outputClass - The expected output class type.output - The expected output text.protected Wire createWire(net.openhft.chronicle.bytes.Bytes<?> bytes)
TextMethodTesterWire instance based on the provided bytes.
The choice between creating a YamlWire or a TextWire is determined by the value of the TEXT_AS_YAML flag.
In both cases, text documents and timestamps are enabled.createWire in class TextMethodTester<T>bytes - The bytes from which the Wire instance will be created.Copyright © 2024. All rights reserved.