Home | History | Annotate | Download | only in eventbus

Lines Matching refs:method

20 import java.lang.reflect.Method;
43 * Checks that a no-frills, no-issues method call is properly executed.
48 Method method = getRecordingMethod();
50 EventHandler handler = new EventHandler(this, method);
54 assertTrue("Handler must call provided method.", methodCalled);
75 Method method = getRecordingMethod();
77 new EventHandler(null, method);
85 Method method = getExceptionThrowingMethod();
86 EventHandler handler = new EventHandler(this, method);
98 Method method = getErrorThrowingMethod();
99 EventHandler handler = new EventHandler(this, method);
112 * @return a Method wrapping {@link #recordingMethod(Object)}.
118 private Method getRecordingMethod() {
119 Method method;
121 method = getClass().getMethod("recordingMethod", Object.class);
129 return method;
135 * @return a Method wrapping {@link #exceptionThrowingMethod(Object)}.
141 private Method getExceptionThrowingMethod() {
142 Method method;
144 method = getClass().getMethod("exceptionThrowingMethod", Object.class);
152 return method;
158 * @return a Method wrapping {@link #errorThrowingMethod(Object)}.
164 private Method getErrorThrowingMethod() {
165 Method method;
167 method = getClass().getMethod("errorThrowingMethod", Object.class);
175 return method;
180 * {@link #methodCalled}. This method is called reflectively by EventHandler
187 throw new IllegalStateException("Method called more than once.");