Package eu.bandm.tools.message
Class Patterns
java.lang.Object
eu.bandm.tools.message.Patterns
Patterns for messages.
Especially useful with unit tests.
-
Method Summary
Modifier and TypeMethodDescription<D> Pattern<SimpleMessage<D>>
Matches the doc id of the location of the SimpleMessage.Tests the doc id of the location of the SimpleMessage to be equal to the given argument.mKind
(Message.Kind kind) Matches any Message with the given kind.mKind
(Pattern<? super Message.Kind> kind) Matches the kind of the Message.mLine
(int line) Tests the line number of the location of the SimpleMessage to be equal to the given argument.Tests the dline number of the location of the SimpleMessage.Pattern<SimpleMessage<?>>
Matches the location of the SimpleMessage.Matches the text of the SimpleMessage.Tests the text of the SimpleMessage to be equal to the argument.mTextStartsWith
(String pref) Tests the text of the SimpleMessage to start with the given argument.
-
Method Details
-
mKind
Matches the kind of the Message. -
mKind
Matches any Message with the given kind. Convenience abbreviation. -
mText
Matches the text of the SimpleMessage. -
mText
Tests the text of the SimpleMessage to be equal to the argument. Convenience abbreviation. -
mTextStartsWith
Tests the text of the SimpleMessage to start with the given argument. Convenience abbreviation. -
mLoc
Matches the location of the SimpleMessage. -
mDocId
Matches the doc id of the location of the SimpleMessage. Convenience abbreviation. -
mDocId
Tests the doc id of the location of the SimpleMessage to be equal to the given argument. Convenience abbreviation. -
mLine
Tests the dline number of the location of the SimpleMessage. Convenience abbreviation. -
mLine
Tests the line number of the location of the SimpleMessage to be equal to the given argument. Convenience abbreviation.
-