Class TestResult

java.lang.Object
com.infoteria.asteria.connection.TestResult
All Implemented Interfaces:
Serializable

public class TestResult extends Object implements Serializable
コネクションのテスト結果を表すクラスです。
See Also:
  • Constructor Details

    • TestResult

      public TestResult(boolean bSucceed)
      テスト結果を作成します。
      Parameters:
      bSucceed - テストに成功した場合はtrue
    • TestResult

      public TestResult(Exception e)
      テストがExceptionで失敗した場合のテスト結果を作成します。
      Parameters:
      Exception - テストで発生したエクセプション
  • Method Details

    • isSucceed

      public boolean isSucceed()
      テストが成功したかどうかを返します。
    • setException

      public void setException(Exception e)
      テストで発生したExceptionを設定します。
    • getException

      public Exception getException()
      テストで発生したExceptionを返します。
    • addParam

      public void addParam(String key, String value)
      テスト結果にパラメータを追加します。
      Parameters:
      key - パラメータ名
      value - パラメータ値
    • getParamCount

      public int getParamCount()
      テスト結果のパラメータ数を返します。
    • getParamKey

      public String getParamKey(int idx)
      idx番目のパラメータのパラメータ名を返します。
    • getParamValue

      public String getParamValue(int idx)
      idx番目のパラメータのパラメータ値を返します。
    • getParamValue

      public String getParamValue(String key)
      keyというパラメータ名のパラメータ値を返します。