private static final class CapturedOutput.CapturedOutputMatcherBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<org.hamcrest.Matcher<String>> |
matchers
Hold all matchers.
|
| Modifier | Constructor and Description |
|---|---|
private |
CapturedOutput.CapturedOutputMatcherBuilder() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
add(org.hamcrest.Matcher<String> matcher)
Adds a matcher.
|
(package private) org.hamcrest.Matcher<String> |
build()
Returns the combined matcher.
|
private List<org.hamcrest.Matcher<? super String>> |
castedMatchers()
Casts list to matchers of super type string.
|
(package private) boolean |
expectsSomething()
Whether the builder has any matcher.
|
private CapturedOutput.CapturedOutputMatcherBuilder()
void add(org.hamcrest.Matcher<String> matcher)
matcher - must not be nullboolean expectsSomething()
true if there are matchers, else falseorg.hamcrest.Matcher<String> build()
nullCopyright © 2012 Sven Strittmatter. All Rights Reserved.