Skip navigation links
A B C D E F G H I J L M O P R S T V W 

A

actualDelta(T) - Method in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
Calculates the actual delta.
actualDelta(Integer) - Method in class de.weltraumschaf.commons.testing.hamcrest.IntegerIsCloseTo
 
actualDelta(Long) - Method in class de.weltraumschaf.commons.testing.hamcrest.LongIsCloseTo
 
add(Matcher<String>) - Method in class de.weltraumschaf.commons.testing.rules.CapturedOutput.CapturedOutputMatcherBuilder
Adds a matcher.
after() - Method in class de.weltraumschaf.commons.testing.rules.JavaDefaultLocale
 
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
 
ApplicationExceptionCodeMatcher<T extends ApplicationException> - Class in de.weltraumschaf.commons.testing.hamcrest
ApplicationExceptionCodeMatcher(ExitCode) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
ApplicationExceptionCodeMatcher(int) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
Dedicated constructor.
apply(Statement, Description) - Method in class de.weltraumschaf.commons.testing.rules.CapturedOutput
 
apply(Statement, Description) - Method in class de.weltraumschaf.commons.testing.rules.Repeater
 
assertCapturedErr() - Method in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Applies matchers on captured error output if there are any matchers.
assertCapturedOut() - Method in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Applies matchers on captured standard output if there are any matchers.
assertNoErrors(Collection<? extends Throwable>) - Method in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
Assert that there are no errors during all repetitions.

B

backup - Variable in class de.weltraumschaf.commons.testing.rules.JavaDefaultLocale
The origin locale.
base - Variable in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
Statement to repeat.
base() - Method in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
The multiple times executed base statement.
BaseIsCloseTo<T extends Number> - Class in de.weltraumschaf.commons.testing.hamcrest
Common base class for matchers with matches numbers with a given error.
BaseIsCloseTo(T, T) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
Dedicated constructor.
BaseRepeatStatement(int, Statement) - Constructor for class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
Dedicated constructor.
before() - Method in class de.weltraumschaf.commons.testing.rules.JavaDefaultLocale
 
build() - Method in class de.weltraumschaf.commons.testing.rules.CapturedOutput.CapturedOutputMatcherBuilder
Returns the combined matcher.

C

calculateFailedRepetitionPercentage(int, int) - Static method in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
Calculates percentage of errors.
CallableInvoker(Callable<Void>) - Constructor for class de.weltraumschaf.commons.testing.DelayedRepeater.CallableInvoker
Dedicated constructor.
CapturedOutput - Class in de.weltraumschaf.commons.testing
Deprecated.
use CapturedOutput instead
CapturedOutput() - Constructor for class de.weltraumschaf.commons.testing.CapturedOutput
Deprecated.
 
capturedOutput - Variable in class de.weltraumschaf.commons.testing.CapturingPrintStream
Used to collect captured output.
CapturedOutput - Class in de.weltraumschaf.commons.testing.rules
This rule captures all output written to System.out and System.err.
CapturedOutput() - Constructor for class de.weltraumschaf.commons.testing.rules.CapturedOutput
Creates a capturing rule with platform encoding.
CapturedOutput(String) - Constructor for class de.weltraumschaf.commons.testing.rules.CapturedOutput
Dedicated constructor.
CapturedOutput.CapturedOutputMatcherBuilder - Class in de.weltraumschaf.commons.testing.rules
Builds string matchers.
CapturedOutputMatcherBuilder() - Constructor for class de.weltraumschaf.commons.testing.rules.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.rules.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
 
closeTo(int, int) - Static method in class de.weltraumschaf.commons.testing.hamcrest.CommonsTestingMatchers
Creates matcher to check if an integer is close to expected.
closeTo(long, long) - Static method in class de.weltraumschaf.commons.testing.hamcrest.CommonsTestingMatchers
Creates matcher to check if an long is close to expected.
closeTo(int, int) - Static method in class de.weltraumschaf.commons.testing.hamcrest.IntegerIsCloseTo
Creates a matcher of Integers that matches when an examined intFF is equal to the specified operand, within a range of +/- error.
closeTo(long, long) - Static method in class de.weltraumschaf.commons.testing.hamcrest.IsCloseTo
Deprecated.
Creates a matcher of Doubles that matches when an examined double is equal to the specified operand, within a range of +/- error.
closeTo(long, long) - Static method in class de.weltraumschaf.commons.testing.hamcrest.LongIsCloseTo
Creates a matcher of Doubles that matches when an examined double is equal to the specified operand, within a range of +/- error.
CommonsTestingMatchers - Class in de.weltraumschaf.commons.testing.hamcrest
Factory for custom Hamcrest matchers.
CommonsTestingMatchers() - Constructor for class de.weltraumschaf.commons.testing.hamcrest.CommonsTestingMatchers
Hidden for pure static class.
create(int, int) - Static method in class de.weltraumschaf.commons.testing.DelayedRepeater
Factory method to create a new instance.
currentRetries - Variable in class de.weltraumschaf.commons.testing.DelayedRepeater
Current amount of tried loops.

D

de.weltraumschaf.commons.testing - package de.weltraumschaf.commons.testing
Sub package for utilities and helpers for testing.
de.weltraumschaf.commons.testing.hamcrest - package de.weltraumschaf.commons.testing.hamcrest
Some custom matchers for Hamcrest.
de.weltraumschaf.commons.testing.rules - package de.weltraumschaf.commons.testing.rules
This package contains custom JUnit rules.
DEFAULT_MAX_TIMES - Static variable in annotation type de.weltraumschaf.commons.testing.rules.RunMaxTimes
Default value for maximum executions.
DelayedRepeater - Class in de.weltraumschaf.commons.testing
This helper is to test asynchronous behavior which does not provide call backs.
DelayedRepeater(int, int) - Constructor for class de.weltraumschaf.commons.testing.DelayedRepeater
Dedicated constructor.
DelayedRepeater.CallableInvoker - Class in de.weltraumschaf.commons.testing
Implementation to execute Callable.
DelayedRepeater.Invoker - Interface in de.weltraumschaf.commons.testing
Interface to wrap to invocation of various targets.
DelayedRepeater.RunnableInvoker - Class in de.weltraumschaf.commons.testing
Implementation to execute Runnable.
delegate - Variable in class de.weltraumschaf.commons.testing.CapturingPrintStream
used to do the real work.
describeMismatchSafely(T, Description) - Method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
 
describeMismatchSafely(T, Description) - Method in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
 
describeTo(Description) - Method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
 
describeTo(Description) - Method in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
 
describeTo(Description) - Method in class de.weltraumschaf.commons.testing.hamcrest.HasMessage
 

E

encoding - Variable in class de.weltraumschaf.commons.testing.CapturingPrintStream
Encoding of the captured bytes.
err - Variable in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Captures the data written to STDERR.
errBackup - Variable in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Holds the original STDERR from before test method.
errMatcherBuilder - Variable in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Build the matchers for STDERR expectations.
error - Variable in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
Accepted error.
error() - Method in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
Get the accepted error.
evaluate() - Method in class de.weltraumschaf.commons.testing.rules.Repeater.RepeatStatement
 
evaluate() - Method in class de.weltraumschaf.commons.testing.rules.Repeater.RepeatUntilSuccessStatement
 
execute() - Method in class de.weltraumschaf.commons.testing.DelayedRepeater.CallableInvoker
 
execute(Runnable) - Method in class de.weltraumschaf.commons.testing.DelayedRepeater
Takes a runnable with some assertions to execute multiple times.
execute(Callable<Void>) - Method in class de.weltraumschaf.commons.testing.DelayedRepeater
Takes a callable with some assertions to execute multiple times.
execute(DelayedRepeater.Invoker) - Method in class de.weltraumschaf.commons.testing.DelayedRepeater
Executes the wrapped assertions until success or it should fail.
execute() - Method in interface de.weltraumschaf.commons.testing.DelayedRepeater.Invoker
Executes the target.
execute() - Method in class de.weltraumschaf.commons.testing.DelayedRepeater.RunnableInvoker
 
expectedExitCode - Variable in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
May be null.
expectedExitCodeNumber - Variable in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
Exit code to verify against it.
expectErr(String) - Method in class de.weltraumschaf.commons.testing.rules.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.rules.CapturedOutput
Adds to the list of requirements for any output printed to STDERR.
expectOut(String) - Method in class de.weltraumschaf.commons.testing.rules.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.rules.CapturedOutput
Adds to the list of requirements for any output printed to STDOUT.
expectsSomething() - Method in class de.weltraumschaf.commons.testing.rules.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
 
formatErrors(Collection<? extends Throwable>, int) - Static method in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
Formats the given errors into one message.

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.
getExpectedExitCode() - Method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
Get the expected exit code as type.
getExpectedExitCodeNumber() - Method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
Get the expected exit code as number.

H

hasExitCode(ExitCode) - Static method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
Static factory method.
hasExitCode(int) - Static method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
Static factory method.
hasExitCode(ExitCode) - Static method in class de.weltraumschaf.commons.testing.hamcrest.CommonsTestingMatchers
Creates a matcher to test if a ApplicationException has a particular exit code.
hasExitCode(int) - Static method in class de.weltraumschaf.commons.testing.hamcrest.CommonsTestingMatchers
Creates a matcher to test if a ApplicationException has a particular exit code.
hasMessage(Matcher<? super String>) - Static method in class de.weltraumschaf.commons.testing.hamcrest.CommonsTestingMatchers
Creates a matcher to test if a Throwable has a particular message.
HasMessage - Class in de.weltraumschaf.commons.testing.hamcrest
Does have a Throwable a message, which matches something.
HasMessage(Matcher<? super String>) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.HasMessage
Dedicated constructor.
hasMessage(Matcher<? super String>) - Static method in class de.weltraumschaf.commons.testing.hamcrest.HasMessage
Creates a matcher of Throwables that matches when its message matched be messageTextMatcher.
hasRunMaxTimesAnnotation(Description) - Method in class de.weltraumschaf.commons.testing.rules.Repeater
Whether the description has a RunMaxTimes annotation or not.
hasRunTimesAnnotation(Description) - Method in class de.weltraumschaf.commons.testing.rules.Repeater
Whether the description has a RunTimes annotation or not.
HUNDRED_PERCENT - Static variable in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
Used for error rate calculation.

I

IntegerIsCloseTo - Class in de.weltraumschaf.commons.testing.hamcrest
Is the value a number equal to a value within some range of acceptable error?
IntegerIsCloseTo(int, int) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.IntegerIsCloseTo
Dedicated constructor.
IsCloseTo - Class in de.weltraumschaf.commons.testing.hamcrest
IsCloseTo(long, long) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.IsCloseTo
Deprecated.
Dedicated constructor.

J

JavaDefaultLocale - Class in de.weltraumschaf.commons.testing.rules
This rule sets the default locale to a desired locale and resets it after the tests to the value before.
JavaDefaultLocale(Locale) - Constructor for class de.weltraumschaf.commons.testing.rules.JavaDefaultLocale
Dedicated constructor.

L

LongIsCloseTo - Class in de.weltraumschaf.commons.testing.hamcrest
Matches a long value with some data.
LongIsCloseTo(long, long) - Constructor for class de.weltraumschaf.commons.testing.hamcrest.LongIsCloseTo
Dedicated constructor.

M

matched - Variable in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
Matched value.
matched() - Method in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
Get the matched value.
matchers - Variable in class de.weltraumschaf.commons.testing.rules.CapturedOutput.CapturedOutputMatcherBuilder
Hold all matchers.
matchesSafely(T) - Method in class de.weltraumschaf.commons.testing.hamcrest.ApplicationExceptionCodeMatcher
 
matchesSafely(T) - Method in class de.weltraumschaf.commons.testing.hamcrest.BaseIsCloseTo
 
matchesSafely(Throwable) - Method in class de.weltraumschaf.commons.testing.hamcrest.HasMessage
 
maxRetries - Variable in class de.weltraumschaf.commons.testing.DelayedRepeater
Maximum amount of retries before failing.
messageTextMatcher - Variable in class de.weltraumschaf.commons.testing.hamcrest.HasMessage
String matcher for expected message.

O

out - Variable in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Captures the data written to STDOUT.
outBackup - Variable in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Holds the original STDOUT from before test method.
outMatcherBuilder - Variable in class de.weltraumschaf.commons.testing.rules.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.rules.CapturedOutput
Set and backup STDERR/STDOUT print streams.
Repeater - Class in de.weltraumschaf.commons.testing.rules
Rule which runs tests annotated with RunTimes or RunMaxTimes multiple times.
Repeater() - Constructor for class de.weltraumschaf.commons.testing.rules.Repeater
 
Repeater.BaseRepeatStatement - Class in de.weltraumschaf.commons.testing.rules
This statement executes the given base statement repeatedly.
Repeater.RepeatStatement - Class in de.weltraumschaf.commons.testing.rules
This statement executes the given base statement repeatedly.
Repeater.RepeatUntilSuccessStatement - Class in de.weltraumschaf.commons.testing.rules
This statement executes the given base statement repeatedly until it succeeds or reaches times.
RepeatStatement(int, Statement) - Constructor for class de.weltraumschaf.commons.testing.rules.Repeater.RepeatStatement
Dedicated constructor.
RepeatUntilSuccessStatement(int, Statement) - Constructor for class de.weltraumschaf.commons.testing.rules.Repeater.RepeatUntilSuccessStatement
Dedicated constructor.
reset() - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
Resets the captured output.
restoreOutputStreams() - Method in class de.weltraumschaf.commons.testing.rules.CapturedOutput
Restore STDERR/STDOUT print streams.
RunMaxTimes - Annotation Type in de.weltraumschaf.commons.testing.rules
Annotates a test method to be executed until it does not fail or maximum is reached.
RunnableInvoker(Runnable) - Constructor for class de.weltraumschaf.commons.testing.DelayedRepeater.RunnableInvoker
Dedicated constructor.
RunTimes - Annotation Type in de.weltraumschaf.commons.testing.rules
Annotates how may times a test method must be executed.

S

setDelegate(PrintStream) - Method in class de.weltraumschaf.commons.testing.CapturingPrintStream
Injection point for testing.
shouldFail() - Method in class de.weltraumschaf.commons.testing.DelayedRepeater
Indicates that the whole test should fail because the maximum retries were exhausted.

T

target - Variable in class de.weltraumschaf.commons.testing.DelayedRepeater.CallableInvoker
The invoked target.
target - Variable in class de.weltraumschaf.commons.testing.DelayedRepeater.RunnableInvoker
The invoked target.
times - Variable in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
how many times to repeat.
times() - Method in class de.weltraumschaf.commons.testing.rules.Repeater.BaseRepeatStatement
How many times to execute the base statement.

V

validateTimes(int, Class<? extends Annotation>) - Method in class de.weltraumschaf.commons.testing.rules.Repeater
Validates that the given times value is not less than zero.

W

waitMillies - Variable in class de.weltraumschaf.commons.testing.DelayedRepeater
Milliseconds to wait before invoking Runnable.run().
wanted - Variable in class de.weltraumschaf.commons.testing.rules.JavaDefaultLocale
The locale wanted as default for Java's locale.
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 H I J L M O P R S T V W 
Skip navigation links

Copyright © 2014 Sven Strittmatter. All Rights Reserved.