{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
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)
Public constructors |
|
|---|---|
AndroidJUnit4(Class<Object> klass)Used when executed with standard junit runner. |
|
Public methods |
|
|---|---|
void |
|
Description |
|
void |
run(RunNotifier runNotifier) |
void |
|
Inherited methods |
||
|---|---|---|
|
||
public AndroidJUnit4(Class<Object> klass)
Used when executed with standard junit runner. Will attempt to delegate to RobolectricTestRunner or delegate provided by android.junit.runner system property.
public void filter(Filter filter)
| Throws | |
|---|---|
org.junit.runner.manipulation.NoTestsRemainException org.junit.runner.manipulation.NoTestsRemainException |
|