Package com.itextpdf.test.annotations
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
Modifier and TypeRequired ElementDescriptionDefines the parameterized log message to look for in the logs. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
A certain message may have to be called several times, and theLogListener
algorithm checks whether it has been called the correct number of times.boolean
Defines whether theLogListener
algorithm should be ignored.int
boolean
Defines whether theLogListener
logs should be suppressed in console output.
-
Element Details
-
messageTemplate
String messageTemplateDefines the parameterized log message to look for in the logs.- Returns:
- the message template that must be checked for
-
-
-
count
int countA certain message may have to be called several times, and theLogListener
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 ignoreDefines whether theLogListener
algorithm should be ignored. If ignored, no checks will be done on the certain log message. Defaults tofalse
.- Returns:
-
whether to ignore the
LogListener
algorithm for a particular log message
- Default:
- false
-
quietMode
boolean quietModeDefines whether theLogListener
logs should be suppressed in console output. Defaults tofalse
.- Returns:
-
whether to suppress the
LogListener
console output
- Default:
- false
-