use of com.axway.ats.rbv.imap.rules.SubjectRule in project ats-framework by Axway.
the class Test_SubjectRule method isMatchModeRightPositive.
@Test
public void isMatchModeRightPositive() throws RbvException {
SubjectRule rule = new SubjectRule("MONDIALE.", SubjectMatchMode.RIGHT, "isMatchModeRightPositive", true);
assertTrue(rule.isMatch(metaData));
}
use of com.axway.ats.rbv.imap.rules.SubjectRule in project ats-framework by Axway.
the class Test_SubjectRule method isMatchModeLeftNegative.
@Test
public void isMatchModeLeftNegative() throws RbvException {
SubjectRule rule = new SubjectRule("MONDIALE.", SubjectMatchMode.LEFT, "isMatchModeLeftNegative", true);
assertFalse(rule.isMatch(metaData));
}
use of com.axway.ats.rbv.imap.rules.SubjectRule in project ats-framework by Axway.
the class Test_SubjectRule method isMatchWrongMetaData.
@Test(expected = MetaDataIncorrectException.class)
public void isMatchWrongMetaData() throws RbvException {
SubjectRule rule = new SubjectRule("infos1.mercatoloterie@gmail.com", SubjectMatchMode.FIND, "isMatchEmptyMetaData", true);
metaData = new MetaData();
assertFalse(rule.isMatch(metaData));
}
use of com.axway.ats.rbv.imap.rules.SubjectRule in project ats-framework by Axway.
the class Test_SubjectRule method isMatchModeEqualsPositive.
@Test
public void isMatchModeEqualsPositive() throws RbvException {
SubjectRule rule = new SubjectRule("LOTERIE MONDIALE.", SubjectMatchMode.EQUALS, "isMatchModeEqualsPositive", true);
assertTrue(rule.isMatch(metaData));
}
use of com.axway.ats.rbv.imap.rules.SubjectRule in project ats-framework by Axway.
the class Test_SubjectRule method isMatchModeRegexNegative.
@Test
public void isMatchModeRegexNegative() throws RbvException {
SubjectRule rule = new SubjectRule("LOTERIE MONDIALE..+", SubjectMatchMode.REGEX, "isMatchModeRegexNegative", true);
assertFalse(rule.isMatch(metaData));
}
Aggregations