From bb1bf6b157746d14bfb170062da5befa2dbf5b1f Mon Sep 17 00:00:00 2001 From: Akshat Sharma Date: Thu, 5 Dec 2024 00:54:12 +0530 Subject: [PATCH] Refactor: Moved InteractionObjectTestBuilder to the testing module --- .../classify/AnswerClassificationControllerTest.kt | 14 +++++++------- ...lementXAtPositionYRuleClassifierProviderTest.kt | 6 +++--- ...entXBeforeElementYRuleClassifierProviderTest.kt | 6 +++--- ...InputIsEqualToOrderingClassifierProviderTest.kt | 2 +- ...temAtIncorrectPositionClassifierProviderTest.kt | 4 ++-- ...DenominatorEqualToRuleClassifierProviderTest.kt | 2 +- ...PartExactlyEqualToRuleClassifierProviderTest.kt | 2 +- ...IntegerPartEqualToRuleClassifierProviderTest.kt | 2 +- ...asNoFractionalPartRuleClassifierProviderTest.kt | 2 +- ...asNumeratorEqualToRuleClassifierProviderTest.kt | 2 +- ...oAndInSimplestFormRuleClassifierProviderTest.kt | 2 +- ...nputIsEquivalentToRuleClassifierProviderTest.kt | 2 +- ...utIsExactlyEqualToRuleClassifierProviderTest.kt | 2 +- ...InputIsGreaterThanRuleClassifierProviderTest.kt | 2 +- ...ionInputIsLessThanRuleClassifierProviderTest.kt | 2 +- ...ntainsAtLeastOneOfRuleClassifierProviderTest.kt | 2 +- ...ontainAtLeastOneOfRuleClassifierProviderTest.kt | 4 ++-- ...lectionInputEqualsRuleClassifierProviderTest.kt | 2 +- ...utIsProperSubsetOfRuleClassifierProviderTest.kt | 4 ++-- ...eChoiceInputEqualsRuleClassifierProviderTest.kt | 2 +- ...WithUnitsIsEqualToRuleClassifierProviderTest.kt | 2 +- ...nitsIsEquivalentToRuleClassifierProviderTest.kt | 2 +- ...NumericInputEqualsRuleClassifierProviderTest.kt | 2 +- ...eaterThanOrEqualToRuleClassifierProviderTest.kt | 2 +- ...InputIsGreaterThanRuleClassifierProviderTest.kt | 2 +- ...InclusivelyBetweenRuleClassifierProviderTest.kt | 2 +- ...sLessThanOrEqualToRuleClassifierProviderTest.kt | 2 +- ...ricInputIsLessThanRuleClassifierProviderTest.kt | 2 +- ...tIsWithinToleranceRuleClassifierProviderTest.kt | 2 +- .../RatioInputEqualsRuleClassifierProviderTest.kt | 2 +- ...asNumberOfTermsEqualToClassifierProviderTest.kt | 2 +- ...pecificTermEqualToRuleClassifierProviderTest.kt | 2 +- ...oInputIsEquivalentRuleClassifierProviderTest.kt | 2 +- .../TextInputContainsRuleClassifierProviderTest.kt | 8 ++++---- .../TextInputEqualsRuleClassifierProviderTest.kt | 8 ++++---- ...xtInputFuzzyEqualsRuleClassifierProviderTest.kt | 8 ++++---- ...extInputStartsWithRuleClassifierProviderTest.kt | 8 ++++---- gradle/wrapper/gradle-wrapper.properties | 4 ++-- testing/build.gradle | 2 ++ .../testing}/InteractionObjectTestBuilder.kt | 2 +- 40 files changed, 67 insertions(+), 65 deletions(-) rename {domain/src/test/java/org/oppia/android/domain/classify => testing/src/main/java/org/oppia/android/testing}/InteractionObjectTestBuilder.kt (99%) diff --git a/domain/src/test/java/org/oppia/android/domain/classify/AnswerClassificationControllerTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/AnswerClassificationControllerTest.kt index 8553d8d1f99..deb346eb7ca 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/AnswerClassificationControllerTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/AnswerClassificationControllerTest.kt @@ -24,13 +24,13 @@ import org.oppia.android.app.model.RuleSpec import org.oppia.android.app.model.SubtitledHtml import org.oppia.android.app.model.Translation import org.oppia.android.app.model.WrittenTranslationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createFraction -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createMixedNumber -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createReal -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString +import org.oppia.android.testing.InteractionObjectTestBuilder.createFraction +import org.oppia.android.testing.InteractionObjectTestBuilder.createMixedNumber +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createReal +import org.oppia.android.testing.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString import org.oppia.android.domain.classify.rules.algebraicexpressioninput.AlgebraicExpressionInputModule import org.oppia.android.domain.classify.rules.continueinteraction.ContinueModule import org.oppia.android.domain.classify.rules.dragAndDropSortInput.DragDropSortInputModule diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXAtPositionYRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXAtPositionYRuleClassifierProviderTest.kt index c7d224753c4..9e0054fb9b1 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXAtPositionYRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXAtPositionYRuleClassifierProviderTest.kt @@ -10,9 +10,9 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableHtmlContentId +import org.oppia.android.testing.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableHtmlContentId import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXBeforeElementYRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXBeforeElementYRuleClassifierProviderTest.kt index a40e47d06f4..a8ed7e7f99f 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXBeforeElementYRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputHasElementXBeforeElementYRuleClassifierProviderTest.kt @@ -10,9 +10,9 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableHtmlContentId +import org.oppia.android.testing.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableHtmlContentId import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingClassifierProviderTest.kt index c6783f37ca1..057f889fee2 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingWithOneItemAtIncorrectPositionClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingWithOneItemAtIncorrectPositionClassifierProviderTest.kt index 9da1c50711e..b72807fa6e7 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingWithOneItemAtIncorrectPositionClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/dragAndDropSortInput/DragDropSortInputIsEqualToOrderingWithOneItemAtIncorrectPositionClassifierProviderTest.kt @@ -10,8 +10,8 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createListOfSetsOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasDenominatorEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasDenominatorEqualToRuleClassifierProviderTest.kt index c0be3182da6..16ffd733368 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasDenominatorEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasDenominatorEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasFractionalPartExactlyEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasFractionalPartExactlyEqualToRuleClassifierProviderTest.kt index d5d95ca9253..39be0a577db 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasFractionalPartExactlyEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasFractionalPartExactlyEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasIntegerPartEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasIntegerPartEqualToRuleClassifierProviderTest.kt index c1212a3a082..1005e6b7b41 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasIntegerPartEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasIntegerPartEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNoFractionalPartRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNoFractionalPartRuleClassifierProviderTest.kt index cb72a6d9b50..5ca473691e7 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNoFractionalPartRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNoFractionalPartRuleClassifierProviderTest.kt @@ -11,7 +11,7 @@ import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.app.model.InteractionObject import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNumeratorEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNumeratorEqualToRuleClassifierProviderTest.kt index bc4bb343c03..706780f642f 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNumeratorEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputHasNumeratorEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToAndInSimplestFormRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToAndInSimplestFormRuleClassifierProviderTest.kt index 8a2d65bf340..1439cbd45b7 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToAndInSimplestFormRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToAndInSimplestFormRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToRuleClassifierProviderTest.kt index 4788fa0e9d9..92bdc0bb71b 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsEquivalentToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsExactlyEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsExactlyEqualToRuleClassifierProviderTest.kt index 67f4cdba623..a3de2ae2cbc 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsExactlyEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsExactlyEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsGreaterThanRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsGreaterThanRuleClassifierProviderTest.kt index aecd631ac68..aaa4de1b8f8 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsGreaterThanRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsGreaterThanRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsLessThanRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsLessThanRuleClassifierProviderTest.kt index 03a00646b82..fbf5934e19a 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsLessThanRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/fractioninput/FractionInputIsLessThanRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputContainsAtLeastOneOfRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputContainsAtLeastOneOfRuleClassifierProviderTest.kt index e182692d80b..0d6e90ac4ce 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputContainsAtLeastOneOfRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputContainsAtLeastOneOfRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode import javax.inject.Inject diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputDoesNotContainAtLeastOneOfRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputDoesNotContainAtLeastOneOfRuleClassifierProviderTest.kt index b6eedff3056..d02cd063ba7 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputDoesNotContainAtLeastOneOfRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputDoesNotContainAtLeastOneOfRuleClassifierProviderTest.kt @@ -10,8 +10,8 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputEqualsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputEqualsRuleClassifierProviderTest.kt index a3c467dcbdc..618230e93c1 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputEqualsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputEqualsRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputIsProperSubsetOfRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputIsProperSubsetOfRuleClassifierProviderTest.kt index a4d3a9fadb4..9c8f6005380 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputIsProperSubsetOfRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/itemselectioninput/ItemSelectionInputIsProperSubsetOfRuleClassifierProviderTest.kt @@ -10,8 +10,8 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createString +import org.oppia.android.testing.InteractionObjectTestBuilder.createSetOfTranslatableHtmlContentIds +import org.oppia.android.testing.InteractionObjectTestBuilder.createString import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/multiplechoiceinput/MultipleChoiceInputEqualsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/multiplechoiceinput/MultipleChoiceInputEqualsRuleClassifierProviderTest.kt index c66ab000848..da1b1583a0b 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/multiplechoiceinput/MultipleChoiceInputEqualsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/multiplechoiceinput/MultipleChoiceInputEqualsRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEqualToRuleClassifierProviderTest.kt index ee150667497..71c4f1015cd 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEquivalentToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEquivalentToRuleClassifierProviderTest.kt index 4e6ed68a7e7..935b807b955 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEquivalentToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numberwithunits/NumberWithUnitsIsEquivalentToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputEqualsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputEqualsRuleClassifierProviderTest.kt index daa27f53145..f9c89123e86 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputEqualsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputEqualsRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.oppia.android.util.math.DOUBLE_EQUALITY_EPSILON import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanOrEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanOrEqualToRuleClassifierProviderTest.kt index 95bab873ae0..20df7e7a3e6 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanOrEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanOrEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanRuleClassifierProviderTest.kt index d488eba6b5a..9d3e6d06eaa 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsGreaterThanRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsInclusivelyBetweenRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsInclusivelyBetweenRuleClassifierProviderTest.kt index 948327a4ec9..f8f6899597d 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsInclusivelyBetweenRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsInclusivelyBetweenRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanOrEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanOrEqualToRuleClassifierProviderTest.kt index 90cba1612af..bc7781ab7f3 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanOrEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanOrEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanRuleClassifierProviderTest.kt index e1819859a89..eebd9eb03ac 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsLessThanRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsWithinToleranceRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsWithinToleranceRuleClassifierProviderTest.kt index 710210dcc39..c7e5027b62b 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsWithinToleranceRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/numericinput/NumericInputIsWithinToleranceRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputEqualsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputEqualsRuleClassifierProviderTest.kt index 07945a20691..0da2778d1fb 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputEqualsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputEqualsRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasNumberOfTermsEqualToClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasNumberOfTermsEqualToClassifierProviderTest.kt index a8c1b27243c..27ad240a40e 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasNumberOfTermsEqualToClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasNumberOfTermsEqualToClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasSpecificTermEqualToRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasSpecificTermEqualToRuleClassifierProviderTest.kt index 14101f1d79e..c64305bdc63 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasSpecificTermEqualToRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputHasSpecificTermEqualToRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputIsEquivalentRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputIsEquivalentRuleClassifierProviderTest.kt index 09fdeb952bb..cd1b0edf710 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputIsEquivalentRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/ratioinput/RatioInputIsEquivalentRuleClassifierProviderTest.kt @@ -10,7 +10,7 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder +import org.oppia.android.testing.InteractionObjectTestBuilder import org.oppia.android.domain.classify.RuleClassifier import org.oppia.android.testing.assertThrows import org.robolectric.annotation.Config diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputContainsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputContainsRuleClassifierProviderTest.kt index 1c258aec94e..389a506fca2 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputContainsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputContainsRuleClassifierProviderTest.kt @@ -14,10 +14,10 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslationContext +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslationContext import org.oppia.android.domain.oppialogger.LogStorageModule import org.oppia.android.domain.oppialogger.LoggingIdentifierModule import org.oppia.android.domain.oppialogger.analytics.ApplicationLifecycleModule diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputEqualsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputEqualsRuleClassifierProviderTest.kt index 6c5c53471c2..6c3716e8936 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputEqualsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputEqualsRuleClassifierProviderTest.kt @@ -14,10 +14,10 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslationContext +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslationContext import org.oppia.android.domain.oppialogger.LogStorageModule import org.oppia.android.domain.oppialogger.LoggingIdentifierModule import org.oppia.android.domain.oppialogger.analytics.ApplicationLifecycleModule diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputFuzzyEqualsRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputFuzzyEqualsRuleClassifierProviderTest.kt index 3bb592d1499..f6bd0920b8f 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputFuzzyEqualsRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputFuzzyEqualsRuleClassifierProviderTest.kt @@ -14,10 +14,10 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslationContext +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslationContext import org.oppia.android.domain.oppialogger.LogStorageModule import org.oppia.android.domain.oppialogger.LoggingIdentifierModule import org.oppia.android.domain.oppialogger.analytics.ApplicationLifecycleModule diff --git a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputStartsWithRuleClassifierProviderTest.kt b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputStartsWithRuleClassifierProviderTest.kt index 60ea011ad34..572165b8a1d 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputStartsWithRuleClassifierProviderTest.kt +++ b/domain/src/test/java/org/oppia/android/domain/classify/rules/textinput/TextInputStartsWithRuleClassifierProviderTest.kt @@ -14,10 +14,10 @@ import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.oppia.android.domain.classify.ClassificationContext -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createNonNegativeInt -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString -import org.oppia.android.domain.classify.InteractionObjectTestBuilder.createTranslationContext +import org.oppia.android.testing.InteractionObjectTestBuilder.createNonNegativeInt +import org.oppia.android.testing.InteractionObjectTestBuilder.createString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslatableSetOfNormalizedString +import org.oppia.android.testing.InteractionObjectTestBuilder.createTranslationContext import org.oppia.android.domain.oppialogger.LogStorageModule import org.oppia.android.domain.oppialogger.LoggingIdentifierModule import org.oppia.android.domain.oppialogger.analytics.ApplicationLifecycleModule diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4f11ea48e89..911d232ddfe 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Mar 29 11:36:23 IST 2020 +#Tue Dec 03 00:30:12 IST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip diff --git a/testing/build.gradle b/testing/build.gradle index 94f2e559dff..e2fb9d323ad 100644 --- a/testing/build.gradle +++ b/testing/build.gradle @@ -102,6 +102,7 @@ dependencies { 'com.google.truth:truth:1.1.3', 'junit:junit:4.12', "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version", + "org.jetbrains.kotlin:kotlin-test", 'org.mockito:mockito-core:2.19.0', project(":domain"), ) @@ -114,6 +115,7 @@ dependencies { annotationProcessor( 'com.google.auto.service:auto-service:1.0-rc4', ) + implementation project(":domain") // TODO(#59): Remove this once Bazel is introduced // sufficiently visible for generated Dagger code. This can be done more cleanly via Bazel since dependencies can be // controlled more directly than in Gradle. diff --git a/domain/src/test/java/org/oppia/android/domain/classify/InteractionObjectTestBuilder.kt b/testing/src/main/java/org/oppia/android/testing/InteractionObjectTestBuilder.kt similarity index 99% rename from domain/src/test/java/org/oppia/android/domain/classify/InteractionObjectTestBuilder.kt rename to testing/src/main/java/org/oppia/android/testing/InteractionObjectTestBuilder.kt index 7fdc5019ced..89791905c76 100644 --- a/domain/src/test/java/org/oppia/android/domain/classify/InteractionObjectTestBuilder.kt +++ b/testing/src/main/java/org/oppia/android/testing/InteractionObjectTestBuilder.kt @@ -1,5 +1,5 @@ -package org.oppia.android.domain.classify +package org.oppia.android.testing import org.oppia.android.app.model.Fraction import org.oppia.android.app.model.HtmlTranslationList