@Test public void testSeparatesUpdates() { Map<Integer, TargetData> targetMap = activeQueries(1); Document newDoc = doc("docs/new", 1, map("key", "value")); DocumentChange newDocChange = new DocumentChange(asList(1), emptyList(), newDoc.getKey(), newDoc); Document existingDoc = doc("docs/existing", 1, map("some", "data")); DocumentChange existingDocChange = new DocumentChange(asList(1), emptyList(), existingDoc.getKey(), existingDoc); NoDocument deletedDoc = deletedDoc("docs/deleted", 1); DocumentChange deletedDocChange = new DocumentChange(asList(1), emptyList(), deletedDoc.getKey(), deletedDoc); NoDocument missingDoc = deletedDoc("docs/missing ", 1); DocumentChange missingDocChange = new DocumentChange(asList(1), emptyList(), missingDoc.getKey(), missingDoc); RemoteEvent event = createRemoteEvent( 3, targetMap, noOutstandingResponses, keySet(existingDoc.getKey(), deletedDoc.getKey()), newDocChange, existingDocChange, deletedDocChange, missingDocChange); TargetChange mapping = targetChange(resumeToken, false, asList(newDoc), asList(existingDoc), asList(deletedDoc)); assertEquals(mapping, event.getTargetChanges().get(1)); }
public Map<Integer, TargetChange> getTargetChanges() { return targetChanges; }
RemoteEvent { public Map<Integer, TargetChange> getTargetChanges() { return targetChanges; } }
RemoteEvent { public Map<Integer, TargetChange> getTargetChanges() { return targetChanges; } RemoteEvent(
      SnapshotVersion snapshotVersion,
      Map<Integer, TargetChange> targetChanges,
      Set<Integer> targetMismatches,
      Map<DocumentKey, MaybeDocument> documentUpdates,
      Set<DocumentKey> resolvedLimboDocuments); }
RemoteEvent { public Map<Integer, TargetChange> getTargetChanges() { return targetChanges; } RemoteEvent(
      SnapshotVersion snapshotVersion,
      Map<Integer, TargetChange> targetChanges,
      Set<Integer> targetMismatches,
      Map<DocumentKey, MaybeDocument> documentUpdates,
      Set<DocumentKey> resolvedLimboDocuments); SnapshotVersion getSnapshotVersion(); Map<Integer, TargetChange> getTargetChanges(); Set<Integer> getTargetMismatches(); Map<DocumentKey, MaybeDocument> getDocumentUpdates(); Set<DocumentKey> getResolvedLimboDocuments(); @Override String toString(); }
RemoteEvent { public Map<Integer, TargetChange> getTargetChanges() { return targetChanges; } RemoteEvent(
      SnapshotVersion snapshotVersion,
      Map<Integer, TargetChange> targetChanges,
      Set<Integer> targetMismatches,
      Map<DocumentKey, MaybeDocument> documentUpdates,
      Set<DocumentKey> resolvedLimboDocuments); SnapshotVersion getSnapshotVersion(); Map<Integer, TargetChange> getTargetChanges(); Set<Integer> getTargetMismatches(); Map<DocumentKey, MaybeDocument> getDocumentUpdates(); Set<DocumentKey> getResolvedLimboDocuments(); @Override String toString();  }