Index
All Classes and Interfaces|All Packages|Serialized Form
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
-
Call.
- 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 - Class in com.googlecode.catchexception.throwable
-
The Class CatchThrowable.
- CatchThrowableHamcrestMatchers - Class in com.googlecode.catchexception.throwable.apis
-
Provides some Hamcrest
matchers
to match somethrowable
properties. - 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() - 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.apis.BDDCatchThrowable
-
Deprecated, for removal: This API element is subject to removal in a future version.Use caghtThrowable() instead as the passed argument does nothing
- caughtThrowable(Class<T>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
-
Deprecated, for removal: This API element is subject to removal in a future version.Use caghtThrowable() instead as the passed argument does nothing
- 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
. - com.googlecode.catchexception.throwable.matcher - package com.googlecode.catchexception.throwable.matcher
-
Test matcher package.
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
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
P
- Placeholder - Class in com.googlecode.catchexception.throwable.matcher
-
The Class Placeholder.
- Placeholder() - Constructor for class com.googlecode.catchexception.throwable.matcher.Placeholder
R
- resetCaughtThrowable() - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
-
Sets the
caught throwable
to null.
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.
- ThrowableMessageMatcher<T> - 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
-
Instantiates a new throwable message matcher.
- ThrowableMessageMatcher(Matcher<String>) - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
-
Instantiates a new throwable message matcher.
- ThrowableNoCauseMatcher<T> - Class in com.googlecode.catchexception.throwable.apis.internal.hamcrest
-
Creates a
matcher
that matches an throwable that has nocause
. - ThrowableNoCauseMatcher() - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
- ThrowableNotThrownAssertionError - Exception Class in com.googlecode.catchexception.throwable
-
Thrown if a method has not thrown an throwable of the expected type.
- ThrowableNotThrownAssertionError(Class<E>) - Constructor for exception class 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 exception class 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
-
The Interface ThrowingCallable.
V
- 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
-
When.
All Classes and Interfaces|All Packages|Serialized Form