Interface EntityValidateInstruction

All Known Implementing Classes:
EntityValidateAdapter

public interface EntityValidateInstruction
Entity 資料表存在性驗證指令介面。

提供 custom step 開發者驗證資料庫中記錄存在且欄位值正確的能力。

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    assertExists(String entityName, List<Map<String,String>> dataTable)
    斷言資料庫中存在符合條件的記錄。
  • Method Details

    • assertExists

      void assertExists(String entityName, List<Map<String,String>> dataTable) throws Exception
      斷言資料庫中存在符合條件的記錄。
      Parameters:
      entityName - entity 名稱
      dataTable - 欄位名稱 → 預期值的列表
      Throws:
      Exception