Home | History | Annotate | Download | only in robolectric

Lines Matching defs:class

47 public class RobolectricTestRunner extends BlockJUnit4ClassRunner implements RobolectricTestRunnerInterface {
57 Logger.getLogger(RobolectricTestRunner.class.getSimpleName());
97 * @param classOrPackageToBeInstrumented fully-qualified class or package name
109 * @param testClass the test class to be run
112 public RobolectricTestRunner(final Class<?> testClass) throws InitializationError {
123 * @param testClass the test class to be run
127 public RobolectricTestRunner(final Class<?> testClass, RobolectricClassLoader classLoader)
142 * @param testClass the test class to be run
146 protected RobolectricTestRunner(final Class<?> testClass, final RobolectricConfig robolectricConfig)
158 * @param testClass the test class to be run
163 protected RobolectricTestRunner(Class<?> testClass, RobolectricConfig robolectricConfig, DatabaseMap databaseMap)
174 * @param testClass the test class to be run
176 * @throws InitializationError if the test class is malformed
178 public RobolectricTestRunner(final Class<?> testClass, final File androidProjectRoot) throws InitializationError {
185 * @param testClass the test class to be run
188 * @deprecated Use {@link #RobolectricTestRunner(Class, File)} instead.
191 public RobolectricTestRunner(final Class<?> testClass, final String androidProjectRoot) throws InitializationError {
198 * contains package name for the {@code R} class which contains the identifiers for all of the resources. The
201 * @param testClass the test class to be run
206 protected RobolectricTestRunner(final Class<?> testClass, final File androidManifestPath, final File resourceDirectory)
214 * contains package name for the {@code R} class which contains the identifiers for all of the resources. The
217 * @param testClass the test class to be run
221 * @deprecated Use {@link #RobolectricTestRunner(Class, File, File)} instead.
224 protected RobolectricTestRunner(final Class<?> testClass, final String androidManifestPath, final String resourceDirectory)
229 protected RobolectricTestRunner(Class<?> testClass, ClassHandler classHandler, RobolectricClassLoader classLoader, RobolectricConfig robolectricConfig) throws InitializationError {
236 * runner called by JUnit and a second instance of the test runner that is loaded via the instrumenting class
239 * the interesting test runner behavior to it. Providing your own class handler and class loader here in order to
241 * resource directory, use {@link #RobolectricTestRunner(Class, String, String)}. For other extensions, consider
242 * creating a subclass and overriding the documented methods of this class.
244 * @param testClass the test class to be run
250 protected RobolectricTestRunner(final Class<?> testClass, final ClassHandler classHandler, final RobolectricClassLoader classLoader, final RobolectricConfig robolectricConfig, final DatabaseMap map) throws InitializationError {
262 delegateLoadingOf(Uri__FromAndroid.class.getName());
263 delegateLoadingOf(RobolectricTestRunnerInterface.class.getName());
264 delegateLoadingOf(RealObject.class.getName());
265 delegateLoadingOf(ShadowWrangler.class.getName());
266 delegateLoadingOf(RobolectricConfig.class.getName());
267 delegateLoadingOf(DatabaseMap.class.getName());
268 delegateLoadingOf(android.R.class.getName());
270 Class<?> delegateClass = classLoader.bootstrap(this.getClass());
272 Constructor<?> constructorForDelegate = delegateClass.getConstructor(Class.class);
297 protected RobolectricTestRunner(final Class<?> testClass, final ClassHandler classHandler, final RobolectricConfig robolectricConfig) throws InitializationError {
303 /** @deprecated use {@link Robolectric.Reflection#setFinalStaticField(Class, String, Object)} */
305 public static void setStaticValue(Class<?> clazz, String fieldName, Object value) {
452 // Test case class
479 * As test methods are loaded by the delegate's class loader, the normal
553 * @return An instance of the Application class specified by the ApplicationManifest.xml or an instance of
568 Class rClass;
570 rClass = Class.forName(rClassName);
599 protected DatabaseMap setupDatabaseMap(Class<?> testClass, DatabaseMap map) {
602 if (testClass.isAnnotationPresent(UsingDatabaseMap.class)) {
603 UsingDatabaseMap usingMap = testClass.getAnnotation(UsingDatabaseMap.class);
608 throw new RuntimeException("UsingDatabaseMap annotation value must provide a class implementing DatabaseMap");
632 return RobolectricTestRunner.class.getClassLoader().getClass().getName().contains(RobolectricClassLoader.class.getName());