diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-15 06:52:23 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-15 06:52:23 +0000 |
| commit | cc76e4f3cc4e4d958f398ed2899a8d653815985b (patch) | |
| tree | 74befb533f198c0e072bce567317924d051a4157 /android-app/app/src/test | |
| parent | c3f1178d30de7f1c5c536d0863d547299f2ab54e (diff) | |
fix: move weather feature to org/terst/nav package directories
Package declarations were already org.terst.nav.* but files lived under
com/example/androidapp/. Kotlin 2.0 (K2) compiler on CI fails when
package declarations don't match directory structure during kapt stub
generation. Moved all 20 files to their correct locations and renamed
MainActivity (weather) -> WeatherActivity to avoid confusion with the
nav app's MainActivity.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/test')
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/data/api/WeatherApiServiceTest.kt (renamed from android-app/app/src/test/kotlin/com/example/androidapp/data/api/WeatherApiServiceTest.kt) | 4 | ||||
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/data/model/ForecastItemTest.kt (renamed from android-app/app/src/test/kotlin/com/example/androidapp/data/model/ForecastItemTest.kt) | 2 | ||||
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/data/model/WindArrowTest.kt (renamed from android-app/app/src/test/kotlin/com/example/androidapp/data/model/WindArrowTest.kt) | 2 | ||||
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/data/repository/WeatherRepositoryTest.kt (renamed from android-app/app/src/test/kotlin/com/example/androidapp/data/repository/WeatherRepositoryTest.kt) | 8 | ||||
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/ui/LocationPermissionHandlerTest.kt (renamed from android-app/app/src/test/kotlin/com/example/androidapp/ui/LocationPermissionHandlerTest.kt) | 2 | ||||
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/ui/MainViewModelTest.kt (renamed from android-app/app/src/test/kotlin/com/example/androidapp/ui/MainViewModelTest.kt) | 8 |
6 files changed, 13 insertions, 13 deletions
diff --git a/android-app/app/src/test/kotlin/com/example/androidapp/data/api/WeatherApiServiceTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/data/api/WeatherApiServiceTest.kt index ac2a652..1d35170 100644 --- a/android-app/app/src/test/kotlin/com/example/androidapp/data/api/WeatherApiServiceTest.kt +++ b/android-app/app/src/test/kotlin/org/terst/nav/data/api/WeatherApiServiceTest.kt @@ -1,6 +1,6 @@ -package com.example.androidapp.data.api +package org.terst.nav.data.api -import com.example.androidapp.data.model.WeatherResponse +import org.terst.nav.data.model.WeatherResponse import com.squareup.moshi.Moshi import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory import kotlinx.coroutines.test.runTest diff --git a/android-app/app/src/test/kotlin/com/example/androidapp/data/model/ForecastItemTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/data/model/ForecastItemTest.kt index f0a903f..b54f3f3 100644 --- a/android-app/app/src/test/kotlin/com/example/androidapp/data/model/ForecastItemTest.kt +++ b/android-app/app/src/test/kotlin/org/terst/nav/data/model/ForecastItemTest.kt @@ -1,4 +1,4 @@ -package com.example.androidapp.data.model +package org.terst.nav.data.model import org.junit.Assert.* import org.junit.Test diff --git a/android-app/app/src/test/kotlin/com/example/androidapp/data/model/WindArrowTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/data/model/WindArrowTest.kt index b61e6fb..ccb28a8 100644 --- a/android-app/app/src/test/kotlin/com/example/androidapp/data/model/WindArrowTest.kt +++ b/android-app/app/src/test/kotlin/org/terst/nav/data/model/WindArrowTest.kt @@ -1,4 +1,4 @@ -package com.example.androidapp.data.model +package org.terst.nav.data.model import org.junit.Assert.* import org.junit.Test diff --git a/android-app/app/src/test/kotlin/com/example/androidapp/data/repository/WeatherRepositoryTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/data/repository/WeatherRepositoryTest.kt index e1bf288..749630f 100644 --- a/android-app/app/src/test/kotlin/com/example/androidapp/data/repository/WeatherRepositoryTest.kt +++ b/android-app/app/src/test/kotlin/org/terst/nav/data/repository/WeatherRepositoryTest.kt @@ -1,8 +1,8 @@ -package com.example.androidapp.data.repository +package org.terst.nav.data.repository -import com.example.androidapp.data.api.MarineApiService -import com.example.androidapp.data.api.WeatherApiService -import com.example.androidapp.data.model.* +import org.terst.nav.data.api.MarineApiService +import org.terst.nav.data.api.WeatherApiService +import org.terst.nav.data.model.* import io.mockk.coEvery import io.mockk.mockk import kotlinx.coroutines.test.runTest diff --git a/android-app/app/src/test/kotlin/com/example/androidapp/ui/LocationPermissionHandlerTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/ui/LocationPermissionHandlerTest.kt index 54afc26..9caa5a0 100644 --- a/android-app/app/src/test/kotlin/com/example/androidapp/ui/LocationPermissionHandlerTest.kt +++ b/android-app/app/src/test/kotlin/org/terst/nav/ui/LocationPermissionHandlerTest.kt @@ -1,4 +1,4 @@ -package com.example.androidapp.ui +package org.terst.nav.ui import org.junit.Assert.* import org.junit.Test diff --git a/android-app/app/src/test/kotlin/com/example/androidapp/ui/MainViewModelTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/ui/MainViewModelTest.kt index cb5f6f9..edecdd5 100644 --- a/android-app/app/src/test/kotlin/com/example/androidapp/ui/MainViewModelTest.kt +++ b/android-app/app/src/test/kotlin/org/terst/nav/ui/MainViewModelTest.kt @@ -1,9 +1,9 @@ -package com.example.androidapp.ui +package org.terst.nav.ui import app.cash.turbine.test -import com.example.androidapp.data.model.ForecastItem -import com.example.androidapp.data.model.WindArrow -import com.example.androidapp.data.repository.WeatherRepository +import org.terst.nav.data.model.ForecastItem +import org.terst.nav.data.model.WindArrow +import org.terst.nav.data.repository.WeatherRepository import io.mockk.coEvery import io.mockk.mockk import kotlinx.coroutines.Dispatchers |
