Package net.sf.redmine_mylyn.api.model

Examples of net.sf.redmine_mylyn.api.model.Journal


    customValue.setValue(value);
    return customValue;
  }
 
  static Journal buildJournal(int id, int userId, long createdOn, String notes) throws Exception {
    Journal journal = new Journal();
    setId(journal, id);
    journal.setUserId(userId);
    journal.setCreatedOn(new Date(createdOn));
    journal.setNotes(notes);
    return journal;
  }
View Full Code Here


    assertEquals(""+df.parse(cv.getValue()).getTime(), attribute.getValue());

    /* Journals */
    /* affected by TaskAttributeMapper, RedmineTaskAttributeMapper */
    attribute = root.getAttribute(TaskAttribute.PREFIX_COMMENT + "3");
    Journal journal = issue.getJournals().get(3);
    assertNotNull(attribute);
    assertEquals(""+journal.getId(), attribute.getValue());
    assertEquals("1", attribute.getAttribute(TaskAttribute.COMMENT_NUMBER).getValue());
    assertEquals(""+journal.getUserId(), attribute.getAttribute(TaskAttribute.COMMENT_AUTHOR).getValue());
    assertEquals(""+journal.getCreatedOn().getTime(), attribute.getAttribute(TaskAttribute.COMMENT_DATE).getValue());
    assertEquals(""+journal.getNotes(), attribute.getAttribute(TaskAttribute.COMMENT_TEXT).getValue());
    assertEquals(URL + "/issues/" + issue.getId() + "#note-3", attribute.getAttribute(TaskAttribute.COMMENT_URL).getValue());
   
    /* Attachments */
    /* affected by TaskAttributeMapper, RedmineTaskAttributeMapper */
    attribute = root.getAttribute(TaskAttribute.PREFIX_ATTACHMENT + "10");
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.model.Journal

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.