use of com.axway.ats.rbv.imap.rules.MimePartCountRule in project ats-framework by Axway.
the class Test_MimePartCountRule method isMatchEmptyMetaData.
@Test(expected = MetaDataIncorrectException.class)
public void isMatchEmptyMetaData() throws RbvException {
MimePartCountRule rule = new MimePartCountRule(5, true, "isMatchEmptyMetaData", true);
metaData = new ImapMetaData(null);
assertFalse(rule.isMatch(metaData));
}
use of com.axway.ats.rbv.imap.rules.MimePartCountRule in project ats-framework by Axway.
the class Test_MimePartCountRule method matchAttachmentsCountNegative.
@Test
public void matchAttachmentsCountNegative() throws RbvException {
MimePartCountRule rule = new MimePartCountRule(5, true, "matchAttachmentsCountNegative", true);
assertFalse(rule.isMatch(metaData));
}
use of com.axway.ats.rbv.imap.rules.MimePartCountRule in project ats-framework by Axway.
the class Test_MimePartCountRule method isMatchNullMetaData.
@Test(expected = RbvException.class)
public void isMatchNullMetaData() throws RbvException {
MimePartCountRule rule = new MimePartCountRule(5, true, "isMatchNullMetaData", true);
assertFalse(rule.isMatch(null));
}
Aggregations