Class TestLogger.AssertOnce

    • Constructor Detail

      • AssertOnce

        public AssertOnce​(@NotNull
                          String expectedMessage)
      • AssertOnce

        public AssertOnce​(@NotNull
                          String expectedMessage,
                          @NotNull
                          org.apache.logging.log4j.Level expectedLevel)
      • AssertOnce

        public AssertOnce​(@NotNull
                          String expectedMessage,
                          @NotNull
                          org.apache.logging.log4j.Level expectedLevel,
                          @NotNull
                          String errorMessage)
    • Method Detail

      • shouldIgnore

        public boolean shouldIgnore​(@NotNull
                                    org.apache.logging.log4j.core.LogEvent event)
        Specified by:
        shouldIgnore in interface TestLogger.LogChecker
        Parameters:
        event - log event added to the logger
        Returns:
        true if this message should be ignored by other checkers