Class ChangeHistoryList

java.lang.Object
com.atlassian.jira.functest.framework.changehistory.ChangeHistoryList
All Implemented Interfaces:
Iterable, Collection, List, SequencedCollection

public class ChangeHistoryList extends Object implements List
This represents a simple object model for testing change history. A ChangeHistoryList is a list of ChangeHistorySet objects.

The order of change history field items is database dependant and hence the order of the items can be gauranteed. Hence the name ChangeHistorySet

However the order of the each set of changes is time dependant and hence can be represented by a list hence the name {ChangeHistoryList}.

You can use this class using a fluent object notation like this :

      ChangeHistoryList expectedList = new ChangeHistoryList();
      expectedList.addChangeSet("Administrator")
          .add("Time Spent", "1 hour [ 3600 ]")
          .add("Remaining Estimate", "1 week [ 604800 ]");
      expectedList.addChangeSet("Administrator")
          .add("Time Spent", "2 hours [ 7200 ]")
          .add("Remaining Estimate", "3 days [ 259200 ]");
       expectedList.addChangeSet("Administrator")
          .add("Time Spent", "1 day, 2 hours [ 93600 ] ")
          .add("Remaining Estimate", "2 days [ 172800 ]");
      expectedList.addChangeSet("Administrator")
          .add("Time Spent", "2 days, 2 hours [ 180000 ] ");
      try
      {
          ChangeHistoryList actualList = ChangeHistoryParser.getChangeHistory(getDialog());
          actualList.assertContainsChangeHistory(expectedList);
      }
      catch (Error e)
      {
          dumpResponse(e);
          throw e;
      }
 
Since:
v3.13