1 package org.robolectric;
2 
3 import java.lang.reflect.Method;
4 
5 public interface TestLifecycle<T> {
6 
7   /**
8    * Called before each test method is run.
9    *
10    * @param method the test method about to be run
11    */
beforeTest(Method method)12   void beforeTest(Method method);
13 
14   /**
15    * Called after each test method is run.
16    *
17    * @param test the instance of the test class that is about to be used
18    */
prepareTest(Object test)19   void prepareTest(Object test);
20 
21   /**
22    * Called after each test method is run.
23    *
24    * @param method the test method that was just run
25    */
afterTest(Method method)26   void afterTest(Method method);
27 }
28