From 0fc0d2e129189bc07a0110ed6dddb1fb381b4240 Mon Sep 17 00:00:00 2001 From: rishidyno <78549195+rishidyno@users.noreply.github.com> Date: Fri, 17 Dec 2021 09:54:35 +0530 Subject: [PATCH] first-commit (#4062) --- ...sSpanCount.kt => ProfileProgressSpanCountTest.kt} | 12 ++++++------ ...plitScreenTesting.kt => PlayerSplitScreenTest.kt} | 12 ++++++------ scripts/assets/kdoc_validity_exemptions.textproto | 2 -- scripts/assets/test_file_exemptions.textproto | 2 -- 4 files changed, 12 insertions(+), 16 deletions(-) rename app/src/test/java/org/oppia/android/app/testing/{ProfileProgressSpanCount.kt => ProfileProgressSpanCountTest.kt} (95%) rename app/src/test/java/org/oppia/android/app/testing/player/split/{PlayerSplitScreenTesting.kt => PlayerSplitScreenTest.kt} (96%) diff --git a/app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCount.kt b/app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCountTest.kt similarity index 95% rename from app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCount.kt rename to app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCountTest.kt index 247e6382b90..73faf975206 100644 --- a/app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCount.kt +++ b/app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCountTest.kt @@ -77,8 +77,8 @@ import javax.inject.Singleton @RunWith(AndroidJUnit4::class) @LooperMode(LooperMode.Mode.PAUSED) -@Config(application = ProfileProgressSpanCount.TestApplication::class) -class ProfileProgressSpanCount { +@Config(application = ProfileProgressSpanCountTest.TestApplication::class) +class ProfileProgressSpanCountTest { @get:Rule val initializeDefaultLocaleRule = InitializeDefaultLocaleRule() @@ -169,18 +169,18 @@ class ProfileProgressSpanCount { @Component.Builder interface Builder : ApplicationComponent.Builder - fun inject(profileProgressSpanCount: ProfileProgressSpanCount) + fun inject(profileProgressSpanCountTest: ProfileProgressSpanCountTest) } class TestApplication : Application(), ActivityComponentFactory, ApplicationInjectorProvider { private val component: TestApplicationComponent by lazy { - DaggerProfileProgressSpanCount_TestApplicationComponent.builder() + DaggerProfileProgressSpanCountTest_TestApplicationComponent.builder() .setApplication(this) .build() as TestApplicationComponent } - fun inject(profileProgressSpanCount: ProfileProgressSpanCount) { - component.inject(profileProgressSpanCount) + fun inject(ProfileProgressSpanCountTest: ProfileProgressSpanCountTest) { + component.inject(ProfileProgressSpanCountTest) } override fun createActivityComponent(activity: AppCompatActivity): ActivityComponent { diff --git a/app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTesting.kt b/app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTest.kt similarity index 96% rename from app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTesting.kt rename to app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTest.kt index db50ed5a66b..cf1ec9c25ed 100644 --- a/app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTesting.kt +++ b/app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTest.kt @@ -73,8 +73,8 @@ import javax.inject.Singleton // Devices reference: https://material.io/resources/devices/ @RunWith(AndroidJUnit4::class) -@Config(application = PlayerSplitScreenTesting.TestApplication::class) -class PlayerSplitScreenTesting { +@Config(application = PlayerSplitScreenTest.TestApplication::class) +class PlayerSplitScreenTest { @get:Rule val initializeDefaultLocaleRule = InitializeDefaultLocaleRule() @@ -197,18 +197,18 @@ class PlayerSplitScreenTesting { @Component.Builder interface Builder : ApplicationComponent.Builder - fun inject(playerSplitScreenTesting: PlayerSplitScreenTesting) + fun inject(playerSplitScreenTest: PlayerSplitScreenTest) } class TestApplication : Application(), ActivityComponentFactory, ApplicationInjectorProvider { private val component: TestApplicationComponent by lazy { - DaggerPlayerSplitScreenTesting_TestApplicationComponent.builder() + DaggerPlayerSplitScreenTest_TestApplicationComponent.builder() .setApplication(this) .build() as TestApplicationComponent } - fun inject(playerSplitScreenTesting: PlayerSplitScreenTesting) { - component.inject(playerSplitScreenTesting) + fun inject(playerSplitScreenTest: PlayerSplitScreenTest) { + component.inject(playerSplitScreenTest) } override fun createActivityComponent(activity: AppCompatActivity): ActivityComponent { diff --git a/scripts/assets/kdoc_validity_exemptions.textproto b/scripts/assets/kdoc_validity_exemptions.textproto index 2d5fbca36b5..d703c884d71 100644 --- a/scripts/assets/kdoc_validity_exemptions.textproto +++ b/scripts/assets/kdoc_validity_exemptions.textproto @@ -355,8 +355,6 @@ exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/Drawa exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/EspressoTestsMatchers.kt" exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/OrientationChangeAction.kt" exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/TabMatcher.kt" -exempted_file_path: "app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCount.kt" -exempted_file_path: "app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTesting.kt" exempted_file_path: "data/src/main/java/org/oppia/android/data/backends/gae/api/ClassroomService.kt" exempted_file_path: "data/src/main/java/org/oppia/android/data/backends/gae/api/ConceptCardService.kt" exempted_file_path: "data/src/main/java/org/oppia/android/data/backends/gae/api/ExplorationService.kt" diff --git a/scripts/assets/test_file_exemptions.textproto b/scripts/assets/test_file_exemptions.textproto index e6d69807115..e2e7ef42706 100644 --- a/scripts/assets/test_file_exemptions.textproto +++ b/scripts/assets/test_file_exemptions.textproto @@ -505,8 +505,6 @@ exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/FontS exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/OrientationChangeAction.kt" exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/ProgressMatcher.kt" exempted_file_path: "app/src/sharedTest/java/org/oppia/android/app/utility/TabMatcher.kt" -exempted_file_path: "app/src/test/java/org/oppia/android/app/testing/ProfileProgressSpanCount.kt" -exempted_file_path: "app/src/test/java/org/oppia/android/app/testing/player/split/PlayerSplitScreenTesting.kt" exempted_file_path: "data/src/main/java/org/oppia/android/data/backends/gae/BaseUrl.kt" exempted_file_path: "data/src/main/java/org/oppia/android/data/backends/gae/Constants.kt" exempted_file_path: "data/src/main/java/org/oppia/android/data/backends/gae/NetworkApiKey.kt"