Plain Java & JUnit 5 in Android Studio
TheAndroidJUnitRunnerclassisaJUnittestrunnerthatletsyouruninstrumentedJUnit4testsonAndroiddevices.,IntheCreateTestdialog,chooseJUnit4,editthefieldsandmethodsyouwanttogenerate,andthenclickOK.IntheChooseDestination ...Testtypesandlocations·Createne...。參考影片的文章的如下: