Annotation Type LogMessage


public @interface LogMessage
An annotation to be used in a LogMessages wrapper, which signifies a particular log message that must appear in a test a specific number of times.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Defines the parameterized log message to look for in the logs.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    A certain message may have to be called several times, and the LogListener algorithm checks whether it has been called the correct number of times.
    boolean
    Defines whether the LogListener algorithm should be ignored.
    int
     
  • Element Details

    • messageTemplate

      String messageTemplate
      Defines the parameterized log message to look for in the logs.
      Returns:
      the message template that must be checked for
    • count

      int count
      A certain message may have to be called several times, and the LogListener algorithm checks whether it has been called the correct number of times. Defaults to once.
      Returns:
      the number of times a message template must appear in the logs
      Default:
      1
    • logLevel

      int logLevel
      Default:
      3000
    • ignore

      boolean ignore
      Defines whether the LogListener algorithm should be ignored. If ignored, no checks will be done on the certain log message. Defaults to false.
      Returns:
      whether to ignore the LogListener algorithm for a particular log message
      Default:
      false