Package com.taskadapter.redmineapi.bean

Examples of com.taskadapter.redmineapi.bean.JournalDetail


    result.addDetails(JsonInput.getListOrEmpty(content, "details", JOURNAL_DETAIL_PARSER));
    return result;
  }
 
  public static JournalDetail parseJournalDetail(JSONObject content) throws JSONException {
      final JournalDetail result = new JournalDetail();
      result.setNewValue(JsonInput.getStringOrNull(content, "new_value"));
        result.setOldValue(JsonInput.getStringOrNull(content, "old_value"));
        result.setName(JsonInput.getStringOrNull(content, "name"));
        result.setProperty(JsonInput.getStringOrNull(content, "property"));
        return result;
  }
View Full Code Here


            assertEquals(ourUser.getFirstName(), journalItem.getUser()
                    .getFirstName());
            assertEquals(ourUser.getLastName(), journalItem.getUser()
                    .getLastName());
            assertEquals(1, journalItem.getDetails().size());
            final JournalDetail journalDetail = journalItem.getDetails().get(0);
            assertEquals("new subject", journalDetail.getNewValue());
            assertEquals("subject", journalDetail.getName());
            assertEquals("attr", journalDetail.getProperty());

            Issue loadedIssueWithoutJournals = issueManager.getIssueById(newIssue.getId());
            assertTrue(loadedIssueWithoutJournals.getJournals().isEmpty());

        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.taskadapter.redmineapi.bean.JournalDetail

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.