Class OldSysHistoryMgrMock

java.lang.Object
de.calamanari.pk.wrapper.legacy.OldSysHistoryMgr
de.calamanari.pk.wrapper.OldSysHistoryMgrMock

public class OldSysHistoryMgrMock
extends OldSysHistoryMgr
OldSys History Manager Mock - mocks the old system's history manager.
Author:
Karl Eilebrecht
  • Field Summary

    Fields inherited from class de.calamanari.pk.wrapper.legacy.OldSysHistoryMgr

    NO_RESULT
  • Constructor Summary

    Constructors
    Constructor Description
    OldSysHistoryMgrMock()
    New mock
  • Method Summary

    Modifier and Type Method Description
    void addTestRecord​(int customerId, java.lang.String[] historyData)
    Method allows to add test data.
    java.lang.String[] getHistory​(int customerId)
    Returns an array with history data:
    key value

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addTestRecord

      public void addTestRecord​(int customerId, java.lang.String[] historyData)
      Method allows to add test data.
      Parameters:
      customerId - id of customer
      historyData - historical data about customer
    • getHistory

      public java.lang.String[] getHistory​(int customerId)
      Description copied from class: OldSysHistoryMgr
      Returns an array with history data:
      • key
      • value
      Overrides:
      getHistory in class OldSysHistoryMgr
      Parameters:
      customerId - identifier
      Returns:
      array with historical data or OldSysHistoryMgr.NO_RESULT if not found