Skip to content

Commit

Permalink
Update barista test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Dec 3, 2022
1 parent 2aaf76a commit b641e91
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
11 changes: 6 additions & 5 deletions barista/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ dependencies {
api(libs.androidX.viewPager2)

implementation(libs.androidX.material)

testImplementation("junit:junit:4.12")
testImplementation("pl.pragmatists:JUnitParams:1.1.0")
testImplementation("org.assertj:assertj-core:1.7.0")
testImplementation("org.mockito:mockito-core:2.28.2")

testImplementation(libs.testing.jUnit)
testImplementation(libs.testing.jUnitParams)
testImplementation(libs.testing.assertJ)

testImplementation(libs.testing.mockito)
}
12 changes: 11 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ androidXVectorDrawable = "1.0.0"
androidXViewPager2 = "1.0.0"
uiAutomator = "2.2.0"

assertJ = "1.7.0"
jUnit = "4.12"
jUnitParams = "1.1.0"
mockito = "2.28.2"

[libraries]

android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "gradlePlugin" }
Expand All @@ -33,4 +38,9 @@ androidX-material = { module = "com.google.android.material:material", version.r
androidX-recyclerView = { module = "androidx.recyclerview:recyclerview", version.ref = "androidXRecyclerView" }
androidX-vectorDrawable-animated = { module = "androidx.vectordrawable:vectordrawable-animated", version.ref = "androidXVectorDrawable" }

androidX-viewPager2 = { module = "androidx.viewpager2:viewpager2", version.ref = "androidXViewPager2" }
androidX-viewPager2 = { module = "androidx.viewpager2:viewpager2", version.ref = "androidXViewPager2" }

testing-assertJ = { module = "org.assertj:assertj-core", version.ref = "assertJ" }
testing-jUnit = { module = "junit:junit", version.ref = "jUnit" }
testing-jUnitParams = { module = "pl.pragmatists:JUnitParams", version.ref = "jUnitParams" }
testing-mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
2 changes: 1 addition & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ dependencies {
androidTestImplementation("com.nhaarman:mockito-kotlin:1.5.0")
androidTestImplementation("org.mockito:mockito-android:2.28.2")

testImplementation("junit:junit:4.12")
testImplementation(libs.testing.jUnit)

}

0 comments on commit b641e91

Please sign in to comment.