Class JsonLogsStream


  • public class JsonLogsStream
    extends java.lang.Object
    Returns a stream of json log lines. This is intended to be used for easy and readable assertions for logger tests
    • Method Summary

      Modifier and Type Method Description
      static java.util.stream.Stream<JsonLogLine> from​(java.io.BufferedReader reader)  
      static java.util.stream.Stream<JsonLogLine> from​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • from

        public static java.util.stream.Stream<JsonLogLine> from​(java.io.BufferedReader reader)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • from

        public static java.util.stream.Stream<JsonLogLine> from​(java.nio.file.Path path)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException