mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
CommonsApplication migrate to kotlin & some lint fixes (#5879)
* convert to kotlin Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * use lateinit instead of nullable types Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * instance property access fix Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * refactor constants name with uppercased ones Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * remove unused Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * fix imports in test Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * use mockk for kotlin to fix tests Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> --------- Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
7c58891892
commit
bc065c8792
10 changed files with 436 additions and 445 deletions
|
|
@ -105,7 +105,7 @@ class AboutActivityTest {
|
|||
fun testLaunchTranslate() {
|
||||
Espresso.onView(ViewMatchers.withId(R.id.about_translate)).perform(ViewActions.click())
|
||||
Espresso.onView(ViewMatchers.withId(android.R.id.button1)).perform(ViewActions.click())
|
||||
val langCode = CommonsApplication.getInstance().languageLookUpTable.codes[0]
|
||||
val langCode = CommonsApplication.instance.languageLookUpTable!!.codes[0]
|
||||
Intents.intended(
|
||||
CoreMatchers.allOf(
|
||||
IntentMatchers.hasAction(Intent.ACTION_VIEW),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue