Package net.sf.redmine_mylyn.api.model.container

Examples of net.sf.redmine_mylyn.api.model.container.Attachments


      issue.setJournals(new Journals());
      lst = getList(issue.getJournals());
      lst.add(buildJournal(3, 2, 1273356000000l, "A comment with inline image: !picture.jpg!"));
     
      /* Attachments */
      issue.setAttachments(new Attachments());
      lst = getList(issue.getAttachments());
      lst.add(buildAttachment(10, 2, 1153336047000l, "picture.jpg", 452, "b91e08d0cf966d5c6ff411bd8c4cc3a2", "image/jpeg", "kurze Beschreibung"));
     
      /* IssueRelations */
     
 
View Full Code Here


    assertEquals(2, comments.get(2).getId());
    assertEquals(2, comments.get(2).getUserId());
    assertEquals(1273356000000l, comments.get(2).getCreatedOn().getTime());
    assertEquals("Some notes with Redmine links: #2, r2.", comments.get(2).getNotes());
   
    Attachments attachments = obj.getAttachments();
    assertEquals(0, attachments.getAll().size());
   
    //IssueRelations
   
    TimeEntries tEntrys = obj.getTimeEntries();
    assertEquals(154.25f, tEntrys.getSum(), 0.0);
View Full Code Here

    assertEquals("", cfs.get(5).getValue());
   
    //TODO not implemented yet
    //IssueRelations
   
    Attachments attachments = obj.getAttachments();
    assertEquals(1, attachments.getAll().size());
    assertEquals(10, attachments.get(10).getId());
    assertEquals(2, attachments.get(10).getAuthorId());
    assertEquals(1153336047000l, attachments.get(10).getCreatedOn().getTime());
    assertEquals("picture.jpg", attachments.get(10).getFilename());
    assertEquals(452, attachments.get(10).getFilesize());
    assertEquals("b91e08d0cf966d5c6ff411bd8c4cc3a2", attachments.get(10).getDigest());
    assertEquals("image/jpeg", attachments.get(10).getContentType());
    assertEquals("kurze Beschreibung", attachments.get(10).getDescription());
  }
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.model.container.Attachments

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.