Class DataCaptor

    • Constructor Detail

      • DataCaptor

        public DataCaptor()
    • Method Detail

      • getData

        public StringBuilder getData​(List<String> caught)
        Description copied from class: Captor
        Gets/transforms data from a caught object to inject into log/report.
        Overrides:
        getData in class IterableCaptor<List<String>>
        Parameters:
        caught - is a caught object to get data for the injecting.
        Returns:
        S produced data to be injected to a log/report
      • getCaptured

        public List<String> getCaptured​(Object toBeCaptured)
        Description copied from class: Captor
        This 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 return null.
        Overrides:
        getCaptured in class IterableCaptor<List<String>>
        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