AndroidJUnit4

public final class AndroidJUnit4
extends BlockJUnit4ClassRunner

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


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.

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.manipulation.Filterable
From interface org.junit.runner.manipulation.Sortable
From interface org.junit.runner.Describable

Public constructors

AndroidJUnit4

AndroidJUnit4 (Class<?> klass, 
                AndroidRunnerParams runnerParams)

Constructs a new instance of the default runner

Parameters
klass Class
runnerParams AndroidRunnerParams
Throws
InitializationError

Protected methods

withPotentialTimeout

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

Parameters
method FrameworkMethod
test Object
next Statement
Returns
Statement