Skip to content
Snippets Groups Projects
Commit 81a38a80 authored by Andrej Rasevic's avatar Andrej Rasevic
Browse files

test fixes

parent 9cdc144b
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,12 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.test.ext:junit-ktx:1.1.3'
androidTestImplementation('androidx.test.espresso:espresso-core:3.4.0')
androidTestImplementation('androidx.test:runner:1.4.0')
androidTestImplementation('androidx.test:rules:1.4.0')
androidTestImplementation('androidx.test.espresso:espresso-intents:3.4.0')
androidTestImplementation('com.android.support.test.uiautomator:uiautomator-v18:2.1.3')
}
repositories {
mavenCentral()
......
......@@ -10,12 +10,12 @@ import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.LargeTest
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.rule.ActivityTestRule
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.uiautomator.UiDevice
import androidx.test.uiautomator.UiSelector
import course.labs.intentslab.ActivityLoaderActivity
import course.labs.intentslab.R
import junit.framework.Assert.assertTrue
import org.junit.Assert.assertTrue
import org.hamcrest.Description
import org.hamcrest.Matcher
import org.hamcrest.Matchers.allOf
......@@ -32,7 +32,7 @@ class ImplicitIntentTest {
@Rule
@JvmField
var mActivityTestRule = ActivityTestRule(ActivityLoaderActivity::class.java)
var mActivityTestRule = ActivityScenarioRule(ActivityLoaderActivity::class.java)
private var uiDevice: UiDevice? = null
@Before
......
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.6.10'
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:7.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}
#Sat Sep 12 21:47:07 EDT 2020
#Fri Feb 11 17:14:45 EST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment