mirror of
https://github.com/AdrianKuta/android-challange-adrian-kuta.git
synced 2025-07-01 21:07:59 +02:00
This commit introduces unit tests for the following use cases in the repository layer: - `ObserveAirportsUseCaseImpl` - `GetFlightsSearchContentUseCaseImpl` - `GetConnectionsForAirportUseCaseImpl` Key changes: - Added `ObserveAirportsUseCaseImplTest.kt` with tests for observing airport data, including scenarios with valid data, empty data, null data, and cache refresh. - Added `GetFlightsSearchContentUseCaseImplTest.kt` with tests for searching flights, covering valid responses and responses with null values. - Added `GetConnectionsForAirportUseCaseImplTest.kt` with tests for fetching airport connections, including scenarios with valid responses, empty responses, responses with null airport codes/names, and multiple route responses. - Added `kotlinx-coroutines-test` dependency to `model/repository/build.gradle.kts` for testing coroutines.
23 lines
600 B
Plaintext
23 lines
600 B
Plaintext
plugins {
|
|
alias(libs.plugins.flights.android.library)
|
|
alias(libs.plugins.flights.android.library.hilt)
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.adriankuta.flights.model.repository"
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.core.util)
|
|
implementation(projects.domain.search)
|
|
implementation(projects.domain.stations)
|
|
implementation(projects.model.data.api)
|
|
implementation(projects.model.datasource.airports)
|
|
|
|
implementation(libs.timber)
|
|
implementation(libs.kotlinx.datetime)
|
|
|
|
testImplementation(libs.mockk.android)
|
|
testImplementation(libs.kotlinx.coroutines.test)
|
|
}
|