use of com.axway.ats.rbv.filesystem.rules.FileContentRule in project ats-framework by Axway.
the class Test_FileContentRule method isMatch.
@Test
public void isMatch() throws Exception {
expect(testFilePackage.grep(EXPRESSION, false)).andReturn(new String[] { EXPRESSION });
replayAll();
FileContentRule rule = new FileContentRule(EXPRESSION, RULE_NAME, false, true);
MetaData metaData = new FileSystemMetaData(testFilePackage);
assertTrue(rule.isMatch(metaData));
verifyAll();
}
Aggregations