@Test void buildShouldBuildWhenEmptyMailboxes() { ImmutableSet<MailboxId> inMailboxes = ImmutableSet.of(); ImmutableSet<MailboxId> notInMailboxes = ImmutableSet.of(); MultimailboxesSearchQuery expected = new MultimailboxesSearchQuery(EMPTY_QUERY, inMailboxes, notInMailboxes, new AccessibleNamespace()); MultimailboxesSearchQuery actual = MultimailboxesSearchQuery.from(EMPTY_QUERY).inMailboxes().build(); assertThat(actual).isEqualToComparingFieldByField(expected); }
public static Builder from(SearchQuery searchQuery) { return new Builder(searchQuery); }
MultimailboxesSearchQuery { public static Builder from(SearchQuery searchQuery) { return new Builder(searchQuery); } }
MultimailboxesSearchQuery { public static Builder from(SearchQuery searchQuery) { return new Builder(searchQuery); } @VisibleForTesting  MultimailboxesSearchQuery(SearchQuery searchQuery, ImmutableSet<MailboxId> inMailboxes, ImmutableSet<MailboxId> notInMailboxes, Namespace namespace); }
MultimailboxesSearchQuery { public static Builder from(SearchQuery searchQuery) { return new Builder(searchQuery); } @VisibleForTesting  MultimailboxesSearchQuery(SearchQuery searchQuery, ImmutableSet<MailboxId> inMailboxes, ImmutableSet<MailboxId> notInMailboxes, Namespace namespace); static Builder from(SearchQuery searchQuery); ImmutableSet<MailboxId> getInMailboxes(); ImmutableSet<MailboxId> getNotInMailboxes(); SearchQuery getSearchQuery(); Namespace getNamespace(); }
MultimailboxesSearchQuery { public static Builder from(SearchQuery searchQuery) { return new Builder(searchQuery); } @VisibleForTesting  MultimailboxesSearchQuery(SearchQuery searchQuery, ImmutableSet<MailboxId> inMailboxes, ImmutableSet<MailboxId> notInMailboxes, Namespace namespace); static Builder from(SearchQuery searchQuery); ImmutableSet<MailboxId> getInMailboxes(); ImmutableSet<MailboxId> getNotInMailboxes(); SearchQuery getSearchQuery(); Namespace getNamespace();  }