mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-04-09 19:03:38 +02:00
Removed test case of detail
This commit is contained in:
@@ -9,7 +9,7 @@ buildscript {
|
|||||||
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
|
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.0.0-alpha03'
|
classpath 'com.android.tools.build:gradle:4.0.0-alpha07'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.18"
|
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.18"
|
||||||
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.5.1.0"
|
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.5.1.0"
|
||||||
|
|||||||
@@ -29,20 +29,4 @@ class DetailViewModelTest : BaseTestWithMainThread() {
|
|||||||
private val getLaunchDetailsParams = GetLaunchDetails.Params(1013)
|
private val getLaunchDetailsParams = GetLaunchDetails.Params(1013)
|
||||||
|
|
||||||
private val viewModel = spyk(DetailViewModel(getLaunchDetails, getLaunchDetailsParams))
|
private val viewModel = spyk(DetailViewModel(getLaunchDetails, getLaunchDetailsParams))
|
||||||
|
|
||||||
@Test
|
|
||||||
fun `loadData should invoke getLauchDetails with provided params`() {
|
|
||||||
dispatcher.runBlockingTest {
|
|
||||||
|
|
||||||
val paramsSlot = slot<GetLaunchDetails.Params>()
|
|
||||||
|
|
||||||
viewModel.loadData()
|
|
||||||
|
|
||||||
// init should have called it already due to creation above
|
|
||||||
verify(exactly = 1, timeout = 5000) {
|
|
||||||
getLaunchDetails(capture(paramsSlot))
|
|
||||||
}
|
|
||||||
paramsSlot.captured.id shouldEqualTo 1013
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,22 @@
|
|||||||
# Project-wide Gradle settings.
|
## For more details on how to configure your build environment visit
|
||||||
# IDE (e.g. Android Studio) users:
|
|
||||||
# Gradle settings configured through the IDE *will override*
|
|
||||||
# any settings specified in this file.
|
|
||||||
# For more details on how to configure your build environment visit
|
|
||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
|
#
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
org.gradle.jvmargs=-Xmx1536m
|
# Default value: -Xmx1024m -XX:MaxPermSize=256m
|
||||||
|
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||||
|
#
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
# org.gradle.parallel=true
|
# org.gradle.parallel=true
|
||||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
#Wed Jan 01 15:32:47 CET 2020
|
||||||
# Android operating system, and which are packaged with your app's APK
|
android.databinding.incremental=true
|
||||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
||||||
android.useAndroidX=true
|
|
||||||
# Automatically convert third-party libraries to use AndroidX
|
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
# Kotlin code style for this project: "official" or "obsolete":
|
android.useAndroidX=true
|
||||||
kotlin.code.style=official
|
kapt.include.compile.classpath=false
|
||||||
# For build performance
|
|
||||||
kotlin.incremental=true
|
|
||||||
kapt.incremental.apt=true
|
kapt.incremental.apt=true
|
||||||
kapt.use.worker.api=true
|
kapt.use.worker.api=true
|
||||||
kapt.include.compile.classpath=false
|
kotlin.code.style=official
|
||||||
#For incremental databinding
|
kotlin.incremental=true
|
||||||
android.databinding.incremental=true
|
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"
|
||||||
|
|||||||
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
#Mon Nov 18 14:54:51 CET 2019
|
#Wed Jan 01 15:32:57 CET 2020
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-milestone-2-all.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user