use of com.axway.ats.rbv.filesystem.rules.FileGidRule in project ats-framework by Axway.
the class Test_FileGIDRule method getRuleDescFile.
@Test
public void getRuleDescFile() {
rule = new FileGidRule(1, "ruleName", true);
assertEquals(rule.getRuleDescription(), "which expects file with GID '1'");
}
use of com.axway.ats.rbv.filesystem.rules.FileGidRule in project ats-framework by Axway.
the class Test_FileGIDRule method performMatchNegativeWxception.
@Test(expected = RbvException.class)
public void performMatchNegativeWxception() throws RbvException, PackageException {
expect(meta.getFilePackage()).andReturn(pack);
expect(pack.getGid()).andThrow(new PackageException(""));
replayAll();
rule = new FileGidRule(1, "ruleName", true);
rule.performMatch(meta);
verifyAll();
}
Aggregations