AndroidJUnit4


public final class AndroidJUnit4 extends Runner implements Filterable, Sortable


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

This method is deprecated. Deprecated in Java

Public methods

void
filter(Filter filter)

This method is deprecated. Deprecated in Java

Description

This method is deprecated. Deprecated in Java

void
run(RunNotifier runNotifier)

This method is deprecated. Deprecated in Java

void
sort(Sorter sorter)

This method is deprecated. Deprecated in Java

Inherited methods

From org.junit.runner.Runner
int

This method is deprecated. Deprecated in Java

Public constructors

AndroidJUnit4

public AndroidJUnit4(Class<@NonNull ?> klass)

Used when executed with standard junit runner. Will attempt to delegate to RobolectricTestRunner or delegate provided by android.junit.runner system property.

Public methods

filter

public void filter(Filter filter)

getDescription

public Description getDescription()

run

public void run(RunNotifier runNotifier)

sort

public void sort(Sorter sorter)