Skip navigation links
B C D E G H M R S T V W 

B

BDDCatchThrowable - Class in com.googlecode.catchexception.throwable.apis
Supports BDD-like approach to catch and verify throwables (given/when/then).
BDDCatchThrowable() - Constructor for class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
 

C

call() - Method in interface com.googlecode.catchexception.throwable.ThrowingCallable
 
captureThrowable(ThrowingCallable) - Static method in class com.googlecode.catchexception.throwable.ThrowableCaptor
 
CatchThrowable - Class in com.googlecode.catchexception.throwable
 
CatchThrowable() - Constructor for class com.googlecode.catchexception.throwable.CatchThrowable
 
catchThrowable(ThrowingCallable) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to catch an throwable and to get access to the thrown throwable (for further verifications).
catchThrowable(ThrowingCallable, Class<? extends Throwable>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to catch an throwable of a specific type and to get access to the thrown throwable (for further verifications).
catchThrowable(ThrowingCallable, Class<? extends Throwable>, boolean) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
 
CatchThrowableHamcrestMatchers - Class in com.googlecode.catchexception.throwable.apis
Provides some Hamcrest matchers to match some throwable properties.
CatchThrowableHamcrestMatchers() - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
 
CatchThrowableUtils - Class in com.googlecode.catchexception.throwable.apis
 
CatchThrowableUtils() - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableUtils
 
caughtThrowable() - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
Returns the throwable caught during the last call on the proxied object in the current thread.
caughtThrowable(Class<T>) - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
 
caughtThrowable() - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Returns the throwable caught during the last call on the proxied object in the current thread.
caughtThrowable(Class<T>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
 
caughtThrowable - Static variable in class com.googlecode.catchexception.throwable.ThrowableHolder
The container for the most recently caught throwable.
com.googlecode.catchexception.throwable - package com.googlecode.catchexception.throwable
This public package contains the primary API to catch and verify throwables.
com.googlecode.catchexception.throwable.apis - package com.googlecode.catchexception.throwable.apis
This public package contains alternative APIs to catch and verify throwables.
com.googlecode.catchexception.throwable.apis.internal.hamcrest - package com.googlecode.catchexception.throwable.apis.internal.hamcrest
This private package provides matchers for CatchThrowableHamcrestMatchers.

D

describeTo(Description) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
describeTo(Description) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
 
doSneakyThrow(Throwable) - Static method in class com.googlecode.catchexception.throwable.ExceptionUtil
 

E

ExceptionUtil - Class in com.googlecode.catchexception.throwable
Code borrowed from famous Spock Framework
ExceptionUtil() - Constructor for class com.googlecode.catchexception.throwable.ExceptionUtil
 
expectedMessageMatcher - Variable in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
The string matcher that shall match throwable message.

G

get() - Static method in class com.googlecode.catchexception.throwable.ThrowableHolder
 

H

hasMessage(String) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
EXAMPLE: assertThat(caughtThrowable(), hasMessage("Index: 9, Size: 9"));
hasMessageThat(Matcher<String>) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
EXAMPLES: assertThat(caughtThrowable(), hasMessageThat(is("Index: 9, Size: 9"))); assertThat(caughtThrowable(), hasMessageThat(containsString("Index: 9"))); // using JUnitMatchers assertThat(caughtThrowable(), hasMessageThat(containsPattern("Index: \\d+"))); // using Mockito's Find
hasNoCause() - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
EXAMPLE: assertThat(caughtThrowable(), hasNoCause());

M

matches(Object) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
matches(Object) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
 

R

resetCaughtThrowable() - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Sets the caught throwable to null.

S

serialVersionUID - Static variable in error com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
set(E) - Static method in class com.googlecode.catchexception.throwable.ThrowableHolder
Saves the given throwable in ThrowableHolder.caughtThrowable.
sneakyThrow(Throwable) - Static method in class com.googlecode.catchexception.throwable.ExceptionUtil
Allows to throw an unchecked exception without declaring it in a throws clause.

T

thenThrown(Class) - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
Throws an assertion if no throwable is thrown or if an throwable of an unexpected type is thrown.
thenThrown(Class) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableUtils
 
ThrowableCaptor - Class in com.googlecode.catchexception.throwable
 
ThrowableCaptor() - Constructor for class com.googlecode.catchexception.throwable.ThrowableCaptor
 
ThrowableHolder - Class in com.googlecode.catchexception.throwable
Holds a caught throwable per Thread.
ThrowableHolder() - Constructor for class com.googlecode.catchexception.throwable.ThrowableHolder
 
ThrowableMessageMatcher<T extends Throwable> - Class in com.googlecode.catchexception.throwable.apis.internal.hamcrest
Creates a matcher that matches an throwable with a certain message.
ThrowableMessageMatcher(String) - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
ThrowableMessageMatcher(Matcher<String>) - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
ThrowableNoCauseMatcher<T extends Throwable> - Class in com.googlecode.catchexception.throwable.apis.internal.hamcrest
Creates a matcher that matches an throwable that has no cause.
ThrowableNoCauseMatcher() - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
 
ThrowableNotThrownAssertionError - Error in com.googlecode.catchexception.throwable
Thrown if a method has not thrown an throwable of the expected type.
ThrowableNotThrownAssertionError(Class<E>) - Constructor for error com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
Use this constructor if neither an throwable of the expected type nor another throwable is thrown.
ThrowableNotThrownAssertionError(Class<E>, Throwable) - Constructor for error com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
Use this constructor if an throwable of another than the expected type is thrown.
ThrowingCallable - Interface in com.googlecode.catchexception.throwable
 

V

validateArguments(ThrowingCallable, Class<? extends Throwable>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
 
verifyThrowable(ThrowingCallable) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to verify that an throwable is thrown and to get access to the thrown throwable (for further verifications).
verifyThrowable(ThrowingCallable, Class<? extends Throwable>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to verify that an throwable of specific type is thrown and to get access to the thrown throwable (for further verifications).

W

when(ThrowingCallable) - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
 
B C D E G H M R S T V W 
Skip navigation links

Copyright © 2019. All rights reserved.