Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

test: add document replication test #1857

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.couchbase.lite;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.assertEquals;

public class DocumentReplicationTest extends BaseReplicatorTest {

@Test
public void testDocumentReplication() {
boolean isPush = true;
List<ReplicatedDocument> docs = new ArrayList<>();
DocumentReplication doc = new DocumentReplication(repl, isPush, docs);
assertEquals(doc.isPush(), isPush);
assertEquals(doc.getReplicator(), repl);
assertEquals(doc.getDocuments(), docs);
}
}