Class TestingLoggerAssert

  • All Implemented Interfaces:
    ch.qos.logback.core.Appender , ch.qos.logback.core.spi.ContextAware , ch.qos.logback.core.spi.FilterAttachable , ch.qos.logback.core.spi.LifeCycle

    
    public class TestingLoggerAssert
    extends AppenderBase<E>
                        
    Since:

    2023-11-01

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static TestingLoggerAssert install() install, and add rules, start, then assert, finally uninstall.
      TestingLoggerAssert rule(String name, Predicate<ILoggingEvent> rule)
      Map<String, Integer> getAssertCount()
      int getAssertCount(String name)
      void assertCount(int min)
      String messageCount()
      void resetAll()
      void resetCount()
      void uninstall()
      • Methods inherited from class ch.qos.logback.core.AppenderBase

        addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
      • Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

        addError, addInfo, addStatus, addWarn, getContext, getStatusManager, setContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait