This class is deprecated.
use androidx.test.ext.junit.runners.AndroidJUnit4 instead.
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)
Used when executed with standard junit runner. Will attempt to delegate to
RobolectricTestRunner or delegate provided by android.junit.runner system property.
Parameters
klass
Class
Throws
InitializationError
Public methods
filter
public void filter (Filter filter)
Parameters
filter
Filter
Throws
NoTestsRemainException
getDescription
public Description getDescription ()
Returns
Description
run
public void run (RunNotifier runNotifier)
Parameters
runNotifier
RunNotifier
sort
public void sort (Sorter sorter)
Parameters
sorter
Sorter
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-07-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]