com.infoteria.asteria.connection
Class TestResult

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

public class TestResult
extends Object
implements Serializable

コネクションのテスト結果を表すクラスです。

See Also:
Serialized Form

Constructor Summary
TestResult(boolean bSucceed)
          テスト結果を作成します。
TestResult(Exception e)
          テストがExceptionで失敗した場合のテスト結果を作成します。
 
Method Summary
 void addParam(String key, String value)
          テスト結果にパラメータを追加します。
 Exception getException()
          テストで発生したExceptionを返します。
 int getParamCount()
          テスト結果のパラメータ数を返します。
 String getParamKey(int idx)
          idx番目のパラメータのパラメータ名を返します。
 String getParamValue(int idx)
          idx番目のパラメータのパラメータ値を返します。
 String getParamValue(String key)
          keyというパラメータ名のパラメータ値を返します。
 boolean isSucceed()
          テストが成功したかどうかを返します。
 void setException(Exception e)
          テストで発生したExceptionを設定します。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResult

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

TestResult

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

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というパラメータ名のパラメータ値を返します。