A B C D E F G M N O P R S W 

A

add(Matcher<String>) - Method in class de.weltraumschaf.commons.testing.CapturedOutput.CapturedOutputMatcherBuilder
Adds a matcher.
append(CharSequence) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
append(CharSequence, int, int) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
append(char) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
apply(Statement, Description) - Method in class de.weltraumschaf.commons.testing.CapturedOutput
 
assertCapturedErr() - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Applies matchers on captured error output if there are any matchers.
assertCapturedOut() - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Applies matchers on captured standard output if there are any matchers.

B

build() - Method in class de.weltraumschaf.commons.testing.CapturedOutput.CapturedOutputMatcherBuilder
Returns the combined matcher.

C

CapturedOutput - Class in de.weltraumschaf.commons.testing
This rule captures all output written to System.out and System.err.
CapturedOutput() - Constructor for class de.weltraumschaf.commons.testing.CapturedOutput
Creates a capturing rule with platform encoding.
CapturedOutput(String) - Constructor for class de.weltraumschaf.commons.testing.CapturedOutput
Dedicated constructor.
capturedOutput - Variable in class de.weltraumschaf.commons.testing.CapturingPrintStream
Used to collect captured output.
CapturedOutput.CapturedOutputMatcherBuilder - Class in de.weltraumschaf.commons.testing
Builds string matchers.
CapturedOutput.CapturedOutputMatcherBuilder() - Constructor for class de.weltraumschaf.commons.testing.CapturedOutput.CapturedOutputMatcherBuilder
 
CapturingPrintStream - Class in de.weltraumschaf.commons.testing
Captures the written bytes instead of printing them to any output stream.
CapturingPrintStream() - Constructor for class de.weltraumschaf.commons.testing.CapturingPrintStream
Creates the print stream with platform encoding.
CapturingPrintStream(String) - Constructor for class de.weltraumschaf.commons.testing.CapturingPrintStream
Dedicated constructor.
castedMatchers() - Method in class de.weltraumschaf.commons.testing.CapturedOutput.CapturedOutputMatcherBuilder
Casts list to matchers of super type string.
checkError() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
close() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 

D

de.weltraumschaf.commons.testing - package de.weltraumschaf.commons.testing
Sub package for utilities and helpers for testing.
delegate - Variable in class de.weltraumschaf.commons.testing.CapturingPrintStream
used to do the real work.

E

encoding - Variable in class de.weltraumschaf.commons.testing.CapturingPrintStream
Encoding of the captured bytes.
err - Variable in class de.weltraumschaf.commons.testing.CapturedOutput
Captures the data written to STDERR.
errBackup - Variable in class de.weltraumschaf.commons.testing.CapturedOutput
Holds the original STDERR from before test method.
errMatcherBuilder - Variable in class de.weltraumschaf.commons.testing.CapturedOutput
Build the matchers for STDERR expectations.
expectErr(String) - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Adds to the list of requirements for any output printed to STDERR that it should contain string substring.
expectErr(Matcher<String>) - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Adds to the list of requirements for any output printed to STDERR.
expectOut(String) - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Adds to the list of requirements for any output printed to STDOUT that it should contain string substring.
expectOut(Matcher<String>) - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Adds to the list of requirements for any output printed to STDOUT.
expectsSomething() - Method in class de.weltraumschaf.commons.testing.CapturedOutput.CapturedOutputMatcherBuilder
Whether the builder has any matcher.

F

flush() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
format(String, Object...) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
format(Locale, String, Object...) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 

G

getCapturedOutput() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
Returns the whole string of everything written to this stream.
getDelegate() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
Only for testing.

M

matchers - Variable in class de.weltraumschaf.commons.testing.CapturedOutput.CapturedOutputMatcherBuilder
Hold all matchers.

N

notNull(T, String) - Static method in class de.weltraumschaf.commons.testing.CapturedOutput
Validates that given subject is not null.

O

out - Variable in class de.weltraumschaf.commons.testing.CapturedOutput
Captures the data written to STDOUT.
outBackup - Variable in class de.weltraumschaf.commons.testing.CapturedOutput
Holds the original STDOUT from before test method.
outMatcherBuilder - Variable in class de.weltraumschaf.commons.testing.CapturedOutput
Build the matchers for STDOUT expectations.

P

print(boolean) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(char) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(int) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(long) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(float) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(double) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(char[]) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(String) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
print(Object) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
printf(String, Object...) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
printf(Locale, String, Object...) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(boolean) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(char) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(int) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(long) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(float) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(double) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(char[]) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(String) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
println(Object) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 

R

redirectOutputStreams() - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Set and backup STDERR/STDOUT print streams.
reset() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
Resets the captured output.
restoreOutputStreams() - Method in class de.weltraumschaf.commons.testing.CapturedOutput
Restore STDERR/STDOUT print streams.

S

setDelegate(PrintStream) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
Injection point for testing.

W

write(int) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
write(byte[], int, int) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
 
A B C D E F G M N O P R S W 

Copyright © 2012 Sven Strittmatter. All Rights Reserved.