From 802dff132024286911fe33ea92c554e37af5f69e Mon Sep 17 00:00:00 2001 From: XichengSpencer <74568012+XichengSpencer@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:08:46 -0400 Subject: [PATCH] Include javax in BUILD.bazel for EventTypeToHumanReadableNameConverter.kt Added test BUILD.bazel config for EventTypeToHumanReadableNameConverterTest --- .../org/oppia/android/util/logging/BUILD.bazel | 1 + .../org/oppia/android/util/logging/BUILD.bazel | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/utility/src/main/java/org/oppia/android/util/logging/BUILD.bazel b/utility/src/main/java/org/oppia/android/util/logging/BUILD.bazel index fec6137a9b5..de80cc82f38 100644 --- a/utility/src/main/java/org/oppia/android/util/logging/BUILD.bazel +++ b/utility/src/main/java/org/oppia/android/util/logging/BUILD.bazel @@ -117,6 +117,7 @@ kt_android_library( ], deps = [ "//model/src/main/proto:event_logger_java_proto_lite", + "//third_party:javax_inject_javax_inject", ], ) diff --git a/utility/src/test/java/org/oppia/android/util/logging/BUILD.bazel b/utility/src/test/java/org/oppia/android/util/logging/BUILD.bazel index b9c05cfff87..b13132c35ce 100644 --- a/utility/src/test/java/org/oppia/android/util/logging/BUILD.bazel +++ b/utility/src/test/java/org/oppia/android/util/logging/BUILD.bazel @@ -112,3 +112,18 @@ oppia_android_test( "//utility/src/main/java/org/oppia/android/util/networking:debug_module", ], ) + +oppia_android_test( + name = "EventTypeToHumanReadableNameConverterTest", + srcs = ["EventTypeToHumanReadableNameConverterTest.kt"], + custom_package = "org.oppia.android.util.logging", + test_class = "org.oppia.android.util.logging.EventTypeToHumanReadableNameConverterTest", + test_manifest = "//utility:test_manifest", + deps = [ + "//:dagger", + "//testing", + "//third_party:androidx_test_ext_junit", + "//third_party:com_google_truth_truth", + "//third_party:org_robolectric_robolectric", + "//third_party:robolectric_android-all", + ], \ No newline at end of file