Skip to content

Commit

Permalink
first-commit (oppia#4062)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishidyno committed Dec 17, 2021
1 parent a285c0b commit 0fc0d2e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions scripts/assets/kdoc_validity_exemptions.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions scripts/assets/test_file_exemptions.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0fc0d2e

Please sign in to comment.