use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbStringFieldRule method isMatchExpectedFalseMultipleRulesNegative.
@Test
public void isMatchExpectedFalseMultipleRulesNegative() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", "test");
metaData.putProperty("test2", "test");
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectFalse);
andRule.addRule(ruleTest2ExpectFalse);
assertFalse(andRule.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbStringFieldRule method isMatchExpectedFalseMultipleRulesPositiveNoMetaData.
@Test
public void isMatchExpectedFalseMultipleRulesPositiveNoMetaData() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", "test123");
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectFalse);
andRule.addRule(ruleTest2ExpectFalse);
assertTrue(andRule.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbStringFieldRule method isMatchExpectedTrueMultipleRulesPositive.
@Test
public void isMatchExpectedTrueMultipleRulesPositive() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", "test");
metaData.putProperty("test2", "test");
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectTrue);
andRule.addRule(ruleTest2ExpectTrue);
assertTrue(andRule.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbStringFieldRule method isMatchExpectedFalsePositive.
@Test
public void isMatchExpectedFalsePositive() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", "test123");
assertTrue(ruleTest1ExpectFalse.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbStringFieldRule method isMatchIncorrectMetaData.
@Test(expected = MetaDataIncorrectException.class)
public void isMatchIncorrectMetaData() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", new Object());
ruleTest1ExpectFalse.isMatch(metaData);
}
Aggregations