Skip to content

Commit

Permalink
test(chore): remove warnings and fix huawei tests
Browse files Browse the repository at this point in the history
SUITEDEV-35237

Co-authored-by: davidSchuppa <[email protected]>
Co-authored-by: LasOri <[email protected]>
  • Loading branch information
3 people committed Feb 22, 2024
1 parent bda8731 commit b396440
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 41 deletions.
4 changes: 1 addition & 3 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions core-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
5 changes: 2 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ android {
multiDexEnabled = true

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)


val version: GitVersion by rootProject.extra
buildConfigField("int", "VERSION_CODE", "${version.versionCode}")
Expand Down
4 changes: 1 addition & 3 deletions emarsys-e2e-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions emarsys-firebase/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions emarsys-huawei/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import org.mockito.kotlin.verify
class EmarsysHuaweiMessagingServiceTest {



private val application: Application
get() = InstrumentationRegistry.getTargetContext().applicationContext as Application

Expand All @@ -48,7 +47,9 @@ class EmarsysHuaweiMessagingServiceTest {
"coreHandler",
spyCoreHandler
)
Looper.prepare()
if (Looper.myLooper() == null) {
Looper.prepare()
}
emarsysHuaweiMessagingService = EmarsysHuaweiMessagingService()
}

Expand Down
4 changes: 1 addition & 3 deletions emarsys-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions emarsys/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions mobile-engage-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions mobile-engage/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ android {
multiDexEnabled = true

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions predict-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions predict/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ android {

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
Expand Down
4 changes: 1 addition & 3 deletions testUtils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ android {
targetSdk = libs.versions.android.targetSdk.get().toInt()
}
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument(
"runnerBuilder",
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
)

}
buildTypes {
Expand Down

0 comments on commit b396440

Please sign in to comment.