public class OutputCapture extends ObjectSE implements org.junit.rules.TestRule
@Rule。| コンストラクターと説明 |
|---|
OutputCapture() |
| 修飾子と型 | メソッドと説明 |
|---|---|
org.junit.runners.model.Statement | apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) |
protected void | captureOutput() |
void | expect(org.hamcrest.Matcher<? super StringSE> matcher) 出力が提供された matcher と一致することを確認します。 |
void | flush() |
protected void | releaseOutput() |
void | reset() 現在蓄積されているすべての出力を破棄します。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)org.junit.rules.TestRule 内の apply protected void captureOutput()
protected void releaseOutput()
public void reset()
public void flush()
public StringSE toString()
ObjectSE の toStringSE public void expect(org.hamcrest.Matcher<? super StringSE> matcher)
matcher と一致することを確認します。検証は、テストメソッドの実行後に実行されます。matcher - マッチャー Copyright © 2019 Pivotal Software, Inc.. All rights reserved.