UI testing fix (#223)
* Fixing the build break Co-authored-by: PraveenKumar Yeruva <pyeruva@microsoft.com>
This commit is contained in:
Родитель
52460d5934
Коммит
5a61aefff5
|
@ -1,25 +0,0 @@
|
|||
package com.microsoft.fluentuidemo.demos
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import com.microsoft.fluentuidemo.DEMOS
|
||||
import com.microsoft.fluentuidemo.DemoActivity
|
||||
import org.junit.*
|
||||
import org.junit.runner.*
|
||||
import org.robolectric.Robolectric
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
class AvatarGroupViewActivityTest {
|
||||
|
||||
private var activity: Activity? = null
|
||||
|
||||
// @Before
|
||||
// fun setup() {
|
||||
// val context = RuntimeEnvironment.getApplication().applicationContext
|
||||
// var intent = Intent(context, AvatarViewActivity::class.java)
|
||||
// intent.putExtra(DemoActivity.DEMO_ID, DEMOS[2].id)
|
||||
// activity = Robolectric.buildActivity(AvatarViewActivity::class.java, intent).create().start().visible().get()
|
||||
// }
|
||||
}
|
|
@ -13,7 +13,7 @@ import org.robolectric.RuntimeEnvironment
|
|||
@RunWith(RobolectricTestRunner::class)
|
||||
class AvatarUtilsTest {
|
||||
|
||||
private val context = RuntimeEnvironment.application.applicationContext
|
||||
private val context = RuntimeEnvironment.getApplication().applicationContext
|
||||
companion object{
|
||||
private const val NAME = "Lorem"
|
||||
private const val EMAIL = "Lorem@mymail.com"
|
||||
|
|
Загрузка…
Ссылка в новой задаче