Class ReceivedListCaptor
- java.lang.Object
-
- ru.tinkoff.qa.neptune.core.api.event.firing.Captor<T,StringBuilder>
-
- ru.tinkoff.qa.neptune.core.api.event.firing.captors.StringCaptor<Object>
-
- ru.tinkoff.qa.neptune.kafka.captors.ReceivedListCaptor
-
public class ReceivedListCaptor extends StringCaptor<Object>
-
-
Constructor Summary
Constructors Constructor Description ReceivedListCaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCaptured(Object toBeCaptured)This method is supposed to be used to convert an object to a value that can be logged and reported.StringBuildergetData(Object caught)Gets/transforms data from a caught object to inject into log/report.
-
-
-
Method Detail
-
getCaptured
public Object getCaptured(Object toBeCaptured)
Description copied from class:CaptorThis method is supposed to be used to convert an object to a value that can be logged and reported. When it is not possible then it should returnnull.- Specified by:
getCapturedin classCaptor<Object,StringBuilder>- Parameters:
toBeCaptured- is an object to get value that is supposed to be captured and logged.- Returns:
- a value to be captured and logged or
null
-
getData
public StringBuilder getData(Object caught)
Description copied from class:CaptorGets/transforms data from a caught object to inject into log/report.- Specified by:
getDatain classStringCaptor<Object>- Parameters:
caught- is a caught object to get data for the injecting.- Returns:
- S produced data to be injected to a log/report
-
-