SearchResult results = (SearchResult) resultsObj;
assertEquals(query, results.getQuery());
assertEquals(1, results.getNumResults());
Digest digest = results.getDigests().get(0);
assertEquals(title, digest.getTitle());
assertEquals(ApiIdSerializer.instance().serialiseWaveId(waveId), digest.getWaveId());
Builder<ParticipantId> participantIds = ImmutableSet.builder();
for (String name : digest.getParticipants()) {
participantIds.add(ParticipantId.ofUnsafe(name));
}
assertEquals(participants, participantIds.build());
assertEquals(unreadCount, digest.getUnreadCount());
assertEquals(blipCount, digest.getBlipCount());
return true;
}
@Override
public void describeTo(Description description) {