public final class

AndroidJUnit4

extends BlockJUnit4ClassRunner
java.lang.Object
   ↳ org.junit.runner.Runner
     ↳ org.junit.runners.ParentRunner<T>
       ↳ org.junit.runners.BlockJUnit4ClassRunner
         ↳ android.support.test.runner.AndroidJUnit4

Class Overview

Aliases the current default Android JUnit 4 class runner, for future-proofing. If future versions of JUnit change the default Runner class, they will also change the definition of this class. Developers wanting to explicitly tag a class as an Android JUnit 4 class should use @RunWith(AndroidJUnit4.class)

Summary

Public Constructors
AndroidJUnit4(Class<?> klass, AndroidRunnerParams runnerParams)
Constructs a new instance of the default runner
Protected Methods
Statement withPotentialTimeout(FrameworkMethod method, Object test, Statement next)
Default to Test level timeout if set.
[Expand]
Inherited Methods
From class org.junit.runners.BlockJUnit4ClassRunner
From class org.junit.runners.ParentRunner
From class org.junit.runner.Runner
From class java.lang.Object
From interface org.junit.runner.Describable
From interface org.junit.runner.manipulation.Filterable
From interface org.junit.runner.manipulation.Sortable

Public Constructors

public AndroidJUnit4 (Class<?> klass, AndroidRunnerParams runnerParams)

Constructs a new instance of the default runner

Throws
InitializationError

Protected Methods

protected Statement withPotentialTimeout (FrameworkMethod method, Object test, Statement next)

Default to Test level timeout if set. Otherwise, set the timeout that was passed to the instrumentation via argument