public class TextMethodTester<T> extends Object implements YamlTester
| Modifier and Type | Class and Description |
|---|---|
static interface |
TextMethodTester.PostSetup |
| Constructor and Description |
|---|
TextMethodTester(String input,
BiFunction<T,net.openhft.chronicle.bytes.UpdateInterceptor,Object> componentFunction,
Class<T> outputClass,
String output) |
TextMethodTester(String input,
Function<T,Object> componentFunction,
Class<T> outputClass,
String output) |
TextMethodTester(String input,
Function<T,Object> componentFunction,
Function<WireOut,T> outputFunction,
String output) |
| Modifier and Type | Method and Description |
|---|---|
String |
actual() |
Function<String,String> |
afterRun() |
@NotNull TextMethodTester |
afterRun(Function<String,String> afterRun) |
protected Wire |
createWire(net.openhft.chronicle.bytes.Bytes<?> bytes) |
BiConsumer<net.openhft.chronicle.bytes.MethodReader,T> |
exceptionHandlerSetup() |
TextMethodTester |
exceptionHandlerSetup(BiConsumer<net.openhft.chronicle.bytes.MethodReader,T> exceptionHandlerSetup) |
String |
expected() |
String |
genericEvent() |
TextMethodTester |
genericEvent(String genericEvent) |
protected @NotNull StringBuilder |
loadLastValues() |
TextMethodTester<T> |
methodReaderInterceptorReturns(net.openhft.chronicle.bytes.MethodReaderInterceptorReturns methodReaderInterceptorReturns) |
Consumer<net.openhft.chronicle.core.util.InvocationTargetRuntimeException> |
onInvocationException() |
TextMethodTester |
onInvocationException(Consumer<net.openhft.chronicle.core.util.InvocationTargetRuntimeException> onInvocationException) |
boolean |
readOne(net.openhft.chronicle.bytes.MethodReader reader0) |
static boolean |
resourceExists(String resourceName) |
String[] |
retainLast() |
@NotNull TextMethodTester |
retainLast(String... retainLast) |
@NotNull TextMethodTester |
run() |
String |
setup() |
@NotNull TextMethodTester |
setup(@Nullable String setup) |
@NotNull TextMethodTester |
setups(@NotNull List<String> setups) |
TextMethodTester<T> |
timeoutMS(long timeoutMS) |
TextMethodTester<T> |
updateInterceptor(net.openhft.chronicle.bytes.UpdateInterceptor updateInterceptor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunTest, runTest, runTestpublic TextMethodTester(String input, Function<T,Object> componentFunction, Class<T> outputClass, String output)
public TextMethodTester(String input, BiFunction<T,net.openhft.chronicle.bytes.UpdateInterceptor,Object> componentFunction, Class<T> outputClass, String output)
public static boolean resourceExists(String resourceName)
public String[] retainLast()
@NotNull public @NotNull TextMethodTester retainLast(String... retainLast)
public String setup()
@NotNull public @NotNull TextMethodTester setup(@Nullable @Nullable String setup)
@NotNull public @NotNull TextMethodTester setups(@NotNull @NotNull List<String> setups)
@NotNull public @NotNull TextMethodTester afterRun(Function<String,String> afterRun)
public BiConsumer<net.openhft.chronicle.bytes.MethodReader,T> exceptionHandlerSetup()
public TextMethodTester exceptionHandlerSetup(BiConsumer<net.openhft.chronicle.bytes.MethodReader,T> exceptionHandlerSetup)
public String genericEvent()
public TextMethodTester genericEvent(String genericEvent)
public Consumer<net.openhft.chronicle.core.util.InvocationTargetRuntimeException> onInvocationException()
public TextMethodTester onInvocationException(Consumer<net.openhft.chronicle.core.util.InvocationTargetRuntimeException> onInvocationException)
@NotNull public @NotNull TextMethodTester run() throws IOException
IOExceptionpublic boolean readOne(net.openhft.chronicle.bytes.MethodReader reader0)
protected Wire createWire(net.openhft.chronicle.bytes.Bytes<?> bytes)
@NotNull protected @NotNull StringBuilder loadLastValues() throws IOException
IOExceptionpublic String expected()
expected in interface YamlTesterpublic String actual()
actual in interface YamlTesterpublic TextMethodTester<T> updateInterceptor(net.openhft.chronicle.bytes.UpdateInterceptor updateInterceptor)
public TextMethodTester<T> methodReaderInterceptorReturns(net.openhft.chronicle.bytes.MethodReaderInterceptorReturns methodReaderInterceptorReturns)
public TextMethodTester<T> timeoutMS(long timeoutMS)
Copyright © 2022. All rights reserved.