// create a rev with an attachment, then update it keeping attachment
// TODO we need to somehow check the attachment wasn't re-downloaded
@Test
    public void dontPullAttachmentAlreadyPulled() {
        try {
            // create a rev with an attachment, then update it keeping attachment
            // TODO we need to somehow check the attachment wasn't re-downloaded
            createRevisionAndBigTextAttachment();
            pull();
            DocumentRevision docRev1 = datastore.getDocument(id, rev);
            Attachment a1 = datastore.getAttachment(docRev1, bigTextAttachmentName);
            updateRevisionAndKeepAttachment();
            updateRevisionAndKeepAttachment();
            pull();
            DocumentRevision docRev2 = datastore.getDocument(id, rev);
            Attachment a2 = datastore.getAttachment(docRev2, bigTextAttachmentName);
            Assert.assertNotNull(a2);
        } catch (Exception e) {
            Assert.fail("Create/pull error " + e);
        }
    }
public void dontPullAttachmentAlreadyPulled() {
try {
// create a rev with an attachment, then update it keeping attachment
// TODO we need to somehow check the attachment wasn't re-downloaded
createRevisionAndBigTextAttachment();
pull();
@Test
public void dontPullAttachmentAlreadyPulled() {
try {
// create a rev with an attachment, then update it keeping attachment
// TODO we need to somehow check the attachment wasn't re-downloaded
createRevisionAndBigTextAttachment();
pull();
DocumentRevision docRev1 = datastore.getDocument(id, rev);
Attachment a1 = datastore.getAttachment(docRev1, bigTextAttachmentName);
updateRevisionAndKeepAttachment();
updateRevisionAndKeepAttachment();
pull();
DocumentRevision docRev2 = datastore.getDocument(id, rev);
Attachment a2 = datastore.getAttachment(docRev2, bigTextAttachmentName);
Assert.assertNotNull(a2);
@Test
public void dontPullAttachmentAlreadyPulled() {
try {
// create a rev with an attachment, then update it keeping attachment
// TODO we need to somehow check the attachment wasn't re-downloaded
createRevisionAndBigTextAttachment();
pull();
DocumentRevision docRev1 = datastore.getDocument(id, rev);
Attachment a1 = datastore.getAttachment(docRev1, bigTextAttachmentName);
updateRevisionAndKeepAttachment();
updateRevisionAndKeepAttachment();
pull();
DocumentRevision docRev2 = datastore.getDocument(id, rev);
Attachment a2 = datastore.getAttachment(docRev2, bigTextAttachmentName);
Assert.assertNotNull(a2);
} catch (Exception e) {
Assert.fail("Create/pull error " + e);
}
}