.getIssueClient()
.getCreateIssueMetadata(null, pm);
assertEquals(4, Iterables.size(metadataProjects));
final CimProject project = Iterables.find(metadataProjects, new Predicate<CimProject>() {
@Override
public boolean apply(CimProject input) {
return "ANONEDIT".equals(input.getKey());
}
});
assertEquals(project.getName(), "Anonymous Editable Project");
assertEquals(5, Iterables.size(project.getIssueTypes()));
for (CimIssueType issueType : project.getIssueTypes()) {
assertTrue(issueType.getFields().isEmpty());
}
}