final Map<String, String> hints = new HashMap<String, String>();
hints.put(FSBlobStore.WILL_NOT_SYNC, "true");
shouldFail(new Action() {
public void run(Transaction txn) throws Exception {
BlobStoreConnection con = store.openConnection(txn, hints);
con.sync();
}
}, UnsupportedOperationException.class, null);
shouldFail(new Action() {
public void run(Transaction txn) throws Exception {
BlobStoreConnection con = store.openConnection(txn, hints);
Blob b = getBlob(con, createId("blobConSync3"), null);
createBlob(con, b, "foos");
b = moveBlob(con, b, createId("blobConSync4"), "foos");
deleteBlob(con, b);
con.sync();
}
}, UnsupportedOperationException.class, null);
// test will-not-sync hint = false
hints.put(FSBlobStore.WILL_NOT_SYNC, "false");
runTests(new Action() {
public void run(Transaction txn) throws Exception {
BlobStoreConnection con = store.openConnection(txn, hints);
con.sync();
con.close();
}
});
}