use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbNumericFieldRule method isMatchExpectedFalseNegative.
@Test
public void isMatchExpectedFalseNegative() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("table.column", 2);
assertFalse(ruleTest1ExpectFalse.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbNumericFieldRule method isMatchExpectedTrueMultipleRulesPositive.
@Test
public void isMatchExpectedTrueMultipleRulesPositive() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("table.column", 2);
metaData.putProperty("table.column2", 5);
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 isMatchExpectedTrueMultipleRulesNegativeNoMetaData.
@Test
public void isMatchExpectedTrueMultipleRulesNegativeNoMetaData() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", "test123");
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectTrue);
andRule.addRule(ruleTest2ExpectTrue);
assertFalse(andRule.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbStringFieldRule method isMatchExpectedTrueMultipleRulesNegativeDontMatch.
@Test
public void isMatchExpectedTrueMultipleRulesNegativeDontMatch() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("test1", "test");
metaData.putProperty("test2", "test123");
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectTrue);
andRule.addRule(ruleTest2ExpectTrue);
assertFalse(andRule.isMatch(metaData));
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbNumericFieldRule method isMatchExpectedTrueMultipleRulesNegativeDontMatch.
@Test
public void isMatchExpectedTrueMultipleRulesNegativeDontMatch() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("table.column", 2);
metaData.putProperty("table.column2", 6);
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectTrue);
andRule.addRule(ruleTest2ExpectTrue);
assertFalse(andRule.isMatch(metaData));
}
Aggregations