OutputCaptureRule を推奨 @DeprecatedSE 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) 使用すべきではありません。 |
void | expect(org.hamcrest.Matcher<? super StringSE> matcher) 使用すべきではありません。 出力が提供された matcher と一致することを確認します。 |
void | flush() 使用すべきではありません。 |
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 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.