Annotation Type LogMessages


@Retention(RUNTIME) public @interface LogMessages
Container annotation for LogMessage objects. This type triggers the LogListener algorithm which checks whether log messages were called the required number of times.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Container for the log messages.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Defines whether the LogListener algorithm should be ignored.
  • Element Details

    • messages

      LogMessage[] messages
      Container for the log messages.
      Returns:
      an array of LogMessage objects
    • ignore

      boolean ignore
      Defines whether the LogListener algorithm should be ignored. If ignored, no checks will be done on the log messages for this test. Note that even if you set this parameter to true, you still have to specify all potential log messages in LogMessage annotations for now, otherwise LogListener will report issues. Defaults to false.
      Returns:
      whether to ignore the LogListener algorithm
      Default:
      false