Class AssertionLoggerHandler

    • Constructor Detail

      • AssertionLoggerHandler

        public AssertionLoggerHandler()
    • Method Detail

      • doPublish

        protected void doPublish​(ExtLogRecord record)
        Description copied from class: ExtHandler
        Do the actual work of publication; the record will have been filtered already. The default implementation does nothing except to flush if the autoFlush property is set to true; if this behavior is to be preserved in a subclass then this method should be called after the record is physically written.
        Overrides:
        doPublish in class ExtHandler
        Parameters:
        record - the log record to publish
      • hasLevel

        public static boolean hasLevel​(Level level)
        is there any record matching Level?
        Parameters:
        level -
        Returns:
      • findText

        public static boolean findText​(long mstimeout,
                                       String... text)
      • findText

        public static boolean findText​(String... text)
        Find a line that contains the parameters passed as an argument
        Parameters:
        text -
        Returns:
      • countText

        public static int countText​(String... text)
      • matchText

        public static boolean matchText​(String pattern)
      • clear

        public static final void clear()
      • startCapture

        public static final void startCapture()
      • startCapture

        public static final void startCapture​(boolean individualMessages)
        Parameters:
        individualMessages - enables counting individual messages.
      • stopCapture

        public static final void stopCapture()