use of com.axway.ats.rbv.filesystem.rules.FileUidRule in project ats-framework by Axway.
the class Test_FileUIDRule method performMatchNegativeWxception.
@Test(expected = RbvException.class)
public void performMatchNegativeWxception() throws RbvException, PackageException {
expect(meta.getFilePackage()).andReturn(pack);
expect(pack.getUid()).andThrow(new PackageException(""));
replayAll();
rule = new FileUidRule(1, "ruleName", true);
rule.performMatch(meta);
verifyAll();
}
use of com.axway.ats.rbv.filesystem.rules.FileUidRule in project ats-framework by Axway.
the class FileSystemVerification method checkUID.
/**
* Add rule to check that the UID of the received file is the same
* as the UID of the source file (NOT SUPPORTED ON WINDOWS)
*
* @param srcAtsAgent the remote ATS agent address on which the source file is located
* @param srcFile the full name of the file
* @throws RbvException thrown on error
*/
@PublicAtsApi
public void checkUID(String srcAtsAgent, String srcFile) throws RbvException {
FileUidRule rule = new FileUidRule(srcAtsAgent, srcFile, "checkUID", true);
rootRule.addRule(rule);
}
use of com.axway.ats.rbv.filesystem.rules.FileUidRule in project ats-framework by Axway.
the class FileSystemVerification method checkUIDDifferent.
/**
* Add rule to check that the UID of the received file is different
* than the UID of the source file (NOT SUPPORTED ON WINDOWS)
*
* @param srcAtsAgent the remote ATS agent address on which the source file is located
* @param srcFile the full name of the file
* @throws RbvException thrown on error
*/
@PublicAtsApi
public void checkUIDDifferent(String srcAtsAgent, String srcFile) throws RbvException {
FileUidRule rule = new FileUidRule(srcAtsAgent, srcFile, "checkUIDDifferent", false);
rootRule.addRule(rule);
}
use of com.axway.ats.rbv.filesystem.rules.FileUidRule in project ats-framework by Axway.
the class FileSystemVerification method checkUIDDifferent.
/**
* Add rule to check that the UID of the received file is different
* than the given one (NOT SUPPORTED ON WINDOWS)
*
* @param uid
*/
@PublicAtsApi
public void checkUIDDifferent(long uid) {
FileUidRule rule = new FileUidRule(uid, "checkUIDDifferent", false);
rootRule.addRule(rule);
}
use of com.axway.ats.rbv.filesystem.rules.FileUidRule in project ats-framework by Axway.
the class FileSystemVerification method checkUID.
/**
* Add rule to check that the UID of the received file is the same
* as the given one (NOT SUPPORTED ON WINDOWS)
*
* @param uid
*/
@PublicAtsApi
public void checkUID(long uid) {
FileUidRule rule = new FileUidRule(uid, "checkUID", true);
rootRule.addRule(rule);
}
Aggregations