use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbNumericFieldRule method isMatchIncorrectMetaData.
@Test(expected = MetaDataIncorrectException.class)
public void isMatchIncorrectMetaData() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("table.column", "asdasd");
ruleTest1ExpectFalse.isMatch(metaData);
}
use of com.axway.ats.rbv.db.DbMetaData in project ats-framework by Axway.
the class Test_DbBinaryFieldRule method isMatchExpectedTrueMultipleRulesPositive.
@Test
public void isMatchExpectedTrueMultipleRulesPositive() throws RbvException {
DbMetaData metaData = new DbMetaData();
metaData.putProperty("table.column", new byte[] { 0, 2 });
metaData.putProperty("table.column2", new byte[] { 0, 5 });
AndRuleOperation andRule = new AndRuleOperation();
andRule.addRule(ruleTest1ExpectTrue);
andRule.addRule(ruleTest2ExpectTrue);
assertTrue(andRule.isMatch(metaData));
}
Aggregations