From ac8920731bd3436e34f10cf7cc56eb3c50683771 Mon Sep 17 00:00:00 2001 From: Melih Aksoy Date: Wed, 1 Jan 2020 17:17:49 +0100 Subject: [PATCH] Removed test case of detail --- build.gradle | 2 +- .../com/melih/detail/DetailViewModelTest.kt | 16 ---------- gradle.properties | 30 ++++++++----------- gradle/wrapper/gradle-wrapper.properties | 4 +-- 4 files changed, 15 insertions(+), 37 deletions(-) diff --git a/build.gradle b/build.gradle index 732584a..a4f9cfb 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } } 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.dokka:dokka-android-gradle-plugin:0.9.18" classpath "de.mannodermaus.gradle.plugins:android-junit5:1.5.1.0" diff --git a/features/detail/src/test/java/com/melih/detail/DetailViewModelTest.kt b/features/detail/src/test/java/com/melih/detail/DetailViewModelTest.kt index 8d7fc96..0843e7d 100644 --- a/features/detail/src/test/java/com/melih/detail/DetailViewModelTest.kt +++ b/features/detail/src/test/java/com/melih/detail/DetailViewModelTest.kt @@ -29,20 +29,4 @@ class DetailViewModelTest : BaseTestWithMainThread() { private val getLaunchDetailsParams = GetLaunchDetails.Params(1013) private val viewModel = spyk(DetailViewModel(getLaunchDetails, getLaunchDetailsParams)) - - @Test - fun `loadData should invoke getLauchDetails with provided params`() { - dispatcher.runBlockingTest { - - val paramsSlot = slot() - - 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 - } - } } diff --git a/gradle.properties b/gradle.properties index da11d04..0f7ea80 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,28 +1,22 @@ -# Project-wide Gradle settings. -# 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 +## For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html +# # Specifies the JVM arguments used for the daemon process. # 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. # 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 # org.gradle.parallel=true -# AndroidX package structure to make it clearer which packages are bundled with the -# Android operating system, and which are packaged with your app's APK -# https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true -# Automatically convert third-party libraries to use AndroidX +#Wed Jan 01 15:32:47 CET 2020 +android.databinding.incremental=true android.enableJetifier=true -# Kotlin code style for this project: "official" or "obsolete": -kotlin.code.style=official -# For build performance -kotlin.incremental=true +android.useAndroidX=true +kapt.include.compile.classpath=false kapt.incremental.apt=true kapt.use.worker.api=true -kapt.include.compile.classpath=false -#For incremental databinding -android.databinding.incremental=true +kotlin.code.style=official +kotlin.incremental=true +org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M" diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 697a89f..94cd6c9 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Nov 18 14:54:51 CET 2019 +#Wed Jan 01 15:32:57 CET 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME 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