Package com.atlassian.jira.rest.client.api.domain

Examples of com.atlassian.jira.rest.client.api.domain.Attachment


    issueClient.addAttachments(issue.getAttachmentsUri(), tempFile).claim();

    final Issue issueWithAttachments = issueClient.getIssue("TST-5").claim();
    final Iterable<Attachment> attachments = issueWithAttachments.getAttachments();
    assertEquals(1, Iterables.size(attachments));
    final Attachment firstAttachment = attachments.iterator().next();
    assertTrue(IOUtils.contentEquals(new FileInputStream(tempFile),
        issueClient.getAttachment(firstAttachment.getContentUri()).claim()));
    assertThat(firstAttachment.getFilename(), equalTo(tempFile.getName()));
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.api.domain.Attachment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.