| Package | Description |
|---|---|
| org.cthul.matchers | |
| org.cthul.matchers.proc | |
| org.cthul.proc |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.hasResult()
Does the proc complete without throwing an exception?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raises(Class<? extends Throwable> clazz)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raises(Class<? extends Throwable> clazz,
org.hamcrest.Matcher<? super Throwable> matcher)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raises(Class<? extends Throwable> clazz,
String regex)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raises(org.hamcrest.Matcher<? super Throwable> throwableMatcher)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raises(String regex)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raisesException()
Does the proc throw an exception?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raisesException(Class<? extends Exception> clazz)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raisesException(Class<? extends Exception> clazz,
String regex)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raisesException(org.hamcrest.Matcher<? super Exception> matcher)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.raisesException(String regex)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.result(org.hamcrest.Matcher<?> resultMatcher)
Does the proc return a value that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.result(Object value)
Does the proc return a value equal to
value? |
static org.hamcrest.Matcher<Proc> |
CthulMatchers.returns()
Does the proc complete without throwing an exception?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.returns(org.hamcrest.Matcher<?> resultMatcher)
Does the proc return a value that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
CthulMatchers.returns(Object value)
Does the proc return a value equal to
value? |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Proc> |
Returns.hasResult()
Does the proc complete without throwing an exception?
|
static org.hamcrest.Matcher<Proc> |
Raises.raises(Class<? extends Throwable> clazz)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raises(Class<? extends Throwable> clazz,
org.hamcrest.Matcher<? super Throwable> matcher)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raises(Class<? extends Throwable> clazz,
String regex)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raises(org.hamcrest.Matcher<? super Throwable> throwableMatcher)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raises(String regex)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raisesException()
Does the proc throw an exception?
|
static org.hamcrest.Matcher<Proc> |
Raises.raisesException(Class<? extends Exception> clazz)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raisesException(Class<? extends Exception> clazz,
String regex)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raisesException(org.hamcrest.Matcher<? super Exception> matcher)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Raises.raisesException(String regex)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Returns.result(org.hamcrest.Matcher<?> resultMatcher)
Does the proc return a value that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Returns.result(Object value)
Does the proc return a value equal to
value? |
static org.hamcrest.Matcher<Proc> |
Returns.returns()
Does the proc complete without throwing an exception?
|
static org.hamcrest.Matcher<Proc> |
Returns.returns(org.hamcrest.Matcher<?> resultMatcher)
Does the proc return a value that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
Returns.returns(Object value)
Does the proc return a value equal to
value? |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Returns.describeMismatchSafely(Proc proc,
org.hamcrest.Description mismatch) |
protected void |
Raises.describeMismatchSafely(Proc proc,
org.hamcrest.Description mismatchDescription) |
protected boolean |
Returns.matchesSafely(Proc proc) |
protected boolean |
Raises.matchesSafely(Proc proc) |
protected boolean |
Returns.matchesSafely(Proc proc,
org.hamcrest.Description mismatch) |
protected boolean |
Raises.matchesSafely(Proc proc,
org.hamcrest.Description mismatchDescription) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Proc0 |
interface |
Proc1<A> |
interface |
Proc2<A,B> |
interface |
Proc3<A,B,C> |
interface |
Proc4<A,B,C,D> |
| Modifier and Type | Class and Description |
|---|---|
class |
CurryProc |
class |
P0
A
ProcBase with no parameters. |
class |
P1<A>
A
ProcBase with one parameter. |
class |
P2<A,B>
A
ProcBase with two parameters. |
class |
P3<A,B,C>
A
ProcBase with three parameters. |
class |
P4<A,B,C,D>
A
ProcBase with four parameters. |
class |
PN
A
PN with parameters. |
class |
ProcBase<This extends ProcBase<This>>
Impements the basic contract of the
Proc interface,
but has no behavior. |
class |
ReflectiveProc
A
PN that uses reflection to invoke a method or a constructor. |
| Modifier and Type | Method and Description |
|---|---|
Proc |
Proc.call(Object... args)
Creates a new Proc that invokes the code of this Proc with
args. |
Proc |
Proc.callAgain()
Creates a new Proc that invokes the code of this Proc
and uses the same arguments.
|
Proc |
ProcBase.curry(Object... args) |
Proc |
Proc.curry(Object... args) |
Proc |
ProcBase.curryAt(int i,
Object... args) |
Proc |
Proc.curryAt(int i,
Object... args) |
static Proc |
Procs.invoke(Class clazz,
String name) |
static Proc |
Procs.invoke(Class clazz,
String name,
Class... paramTypes) |
static Proc |
Procs.invoke(Class clazz,
String name,
int paramCount) |
static Proc |
Procs.invoke(Object object,
String name) |
static Proc |
Procs.invoke(Object object,
String name,
Class... paramTypes) |
static Proc |
Procs.invoke(Object object,
String name,
int paramCount) |
static Proc |
Procs.invoke(Object object,
String name,
Object... args) |
static Proc |
Procs.invoke(String name) |
static Proc |
Procs.invoke(String name,
Class... paramTypes) |
static Proc |
Procs.invoke(String name,
int paramCount) |
static Proc |
Procs.invokeWith(Class clazz,
String name,
Object... args) |
static Proc |
Procs.invokeWith(String name,
Object... args) |
static Proc |
Procs.newInstance(Class clazz) |
static Proc |
Procs.newInstance(Class<?> clazz,
Class... paramTypes) |
static Proc |
Procs.newInstance(Class clazz,
int paramCount) |
static Proc |
Procs.newInstanceWith(Class<?> clazz,
Object... args) |
Proc |
Proc.retry()
Resets the Proc.
|
Proc |
Proc.with(Object... args)
Alias for
call(java.lang.Object[]). |
Copyright © 2013. All Rights Reserved.