|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.dbms.test.sql.Thrower
public abstract class Thrower
A class which can throw on demand.
Constructor Summary | |
---|---|
protected |
Thrower()
|
Method Summary | |
---|---|
static boolean |
shouldThrow(Class<?> i,
String methodName)
Check whether method should throw, called once for every method invocation. |
static void |
startThrowing(Class<?> i,
String methodName)
Tell named method to start throwing exceptions. |
static void |
startThrowingAfter(Class<?> i,
String methodName,
int goes)
Tell named method to start throwing exceptions. |
static void |
stopThrowing(Class<?> i,
String methodName)
Tell named method to stop throwing exceptions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Thrower()
Method Detail |
---|
public static void startThrowing(Class<?> i, String methodName)
i
- Interface class objectmethodName
- name in class.methodName formatpublic static void startThrowingAfter(Class<?> i, String methodName, int goes)
i
- Interface class objectmethodName
- name in class.methodName formatpublic static void stopThrowing(Class<?> i, String methodName)
i
- Interface class objectmethodName
- name in class.methodName formatpublic static boolean shouldThrow(Class<?> i, String methodName)
i
- Interface class objectmethodName
- name in class.methodName format
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |