Skip to content

Commit 4c8a308

Browse files
Mobile Ads Developer Relationscopybara-github
authored andcommitted
Fix Truth assertions in AppLovin tests which ensures we get better error messages if the test fails
PiperOrigin-RevId: 906916131
1 parent d987e57 commit 4c8a308

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ThirdPartyAdapters/applovin/applovin/src/test/kotlin/com/google/ads/mediation/applovin/AppLovinBannerAdTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class AppLovinBannerAdTest {
103103
verify(bannerAdLoadCallback).onFailure(adErrorCaptor.capture())
104104
val capturedError = adErrorCaptor.firstValue
105105
assertThat(capturedError.code).isEqualTo(AppLovinErrorCodes.NO_FILL)
106-
assertThat(capturedError.message.startsWith(ERROR_MSG_REASON_PREFIX)).isTrue()
106+
assertThat(capturedError.message).startsWith(ERROR_MSG_REASON_PREFIX)
107107
assertThat(capturedError.domain).isEqualTo(APPLOVIN_SDK_ERROR_DOMAIN)
108108
}
109109

ThirdPartyAdapters/applovin/applovin/src/test/kotlin/com/google/ads/mediation/applovin/AppLovinInterstitialRendererTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class AppLovinInterstitialRendererTest {
7070
verify(interstitialAdLoadCallback).onFailure(adErrorCaptor.capture())
7171
val capturedError = adErrorCaptor.firstValue
7272
assertThat(capturedError.code).isEqualTo(AppLovinErrorCodes.NO_FILL)
73-
assertThat(capturedError.message.startsWith(ERROR_MSG_REASON_PREFIX)).isTrue()
73+
assertThat(capturedError.message).startsWith(ERROR_MSG_REASON_PREFIX)
7474
assertThat(capturedError.domain).isEqualTo(APPLOVIN_SDK_ERROR_DOMAIN)
7575
}
7676

ThirdPartyAdapters/applovin/applovin/src/test/kotlin/com/google/ads/mediation/applovin/AppLovinRewardedRendererTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AppLovinRewardedRendererTest {
8080
verify(rewardedAdLoadCallback).onFailure(adErrorCaptor.capture())
8181
val capturedError = adErrorCaptor.firstValue
8282
assertThat(capturedError.code).isEqualTo(AppLovinErrorCodes.NO_FILL)
83-
assertThat(capturedError.message.startsWith(ERROR_MSG_REASON_PREFIX)).isTrue()
83+
assertThat(capturedError.message).startsWith(ERROR_MSG_REASON_PREFIX)
8484
assertThat(capturedError.domain).isEqualTo(APPLOVIN_SDK_ERROR_DOMAIN)
8585
}
8686

0 commit comments

Comments
 (0)