jqlSearchWithAllFieldsImpl(generateVeryLongJql() + "and key=TST-2");
}
private void jqlSearchWithAllFieldsImpl(String jql) {
final ImmutableSet<String> fields = ImmutableSet.of("*all");
final SearchResult searchResult = client.getSearchClient().searchJql(jql, null, null, fields).claim();
final Issue issue = Iterables.getOnlyElement(searchResult.getIssues());
assertEquals("TST-2", issue.getKey());
assertEquals("Testing attachem2", issue.getSummary());
assertEquals(new TimeTracking(0, 0, 145), issue.getTimeTracking());
assertThat(issue.getComponents(), NamedEntityMatchers.entitiesWithNames("Component A", "Component B"));