public abstract class AbstractExternalResourceTestSupport<R>
extends java.lang.Object
implements org.junit.rules.TestRuleRule の抽象基本クラス。リソースが実際に存在する場合、テストライフサイクル中に getResource() を介して使用できます。存在しない場合、システムプロパティ "XD_EXTERNAL_SERVERS_REQUIRED" の値に応じて、テストは失敗するかスキップされます。| 修飾子と型 | フィールドと説明 |
|---|---|
protected org.slf4j.Logger | logger |
protected R | resource |
static java.lang.String | XD_EXTERNAL_SERVERS_REQUIRED |
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | AbstractExternalResourceTestSupport(java.lang.String resourceDescription) |
| 修飾子と型 | メソッドと説明 |
|---|---|
org.junit.runners.model.Statement | apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) |
protected abstract void | cleanupResource() 非 null であることが保証される resource フィールドのクリーンアップを実行します。 |
R | getResource() |
protected abstract void | obtainResource() リソースを取得して検証してみます。 |
public static final java.lang.String XD_EXTERNAL_SERVERS_REQUIRED
protected R resource
protected final org.slf4j.Logger logger
protected AbstractExternalResourceTestSupport(java.lang.String resourceDescription)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)org.junit.rules.TestRule の apply public R getResource()
protected abstract void cleanupResource()
throws java.lang.Exceptionresource フィールドのクリーンアップを実行します。java.lang.Exception - このメソッドによってスローされた例外はすべてログに記録され、取り込まれます。protected abstract void obtainResource()
throws java.lang.Exceptionresource フィールドを設定して通常どおりに戻るか、例外をスローする必要があります。java.lang.Exception