Interface JCoMockRepository


public interface JCoMockRepository
Class for mocking JCo result structures based on a file.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sap.conn.jco.JCoRecord
    Returns a JCoRecord (ie.
    com.sap.conn.jco.JCoStructure
    Returns a JCoStructure (JCoRecord) by it's key.
    com.sap.conn.jco.JCoTable
    Returns a JCoTable by it's key.
  • Method Details

    • getRecord

      com.sap.conn.jco.JCoRecord getRecord(String key) throws JCoRecException
      Returns a JCoRecord (ie. JCoTable or JCoStructure) by it's key.
      Parameters:
      key - for this JCoRecord.
      Returns:
      Returns the Record with the given key.
      Throws:
      JCoRecException - if there is no Record available with the given key.
    • getStructure

      com.sap.conn.jco.JCoStructure getStructure(String key) throws JCoRecException
      Returns a JCoStructure (JCoRecord) by it's key.
      Parameters:
      key - the key for this JCoStructure.
      Returns:
      Returns the JCoStructure with the given key.
      Throws:
      JCoRecException - if the Record with this key is not a JCoStructure or there is no JCoStructure with this key.
    • getTable

      com.sap.conn.jco.JCoTable getTable(String key) throws JCoRecException
      Returns a JCoTable by it's key.
      Parameters:
      key - for this JCoTable.
      Returns:
      Returns the JCoTable with the given key.
      Throws:
      JCoRecException - if the Record with this key is not a JCoTable or there is no JCoTable with this key.