From 11f5fb4ea77ab44c84e37a7eb57c2c197fee8e64 Mon Sep 17 00:00:00 2001 From: Denis Savosin Date: Wed, 2 Oct 2024 16:52:33 +0700 Subject: [PATCH] some fixes --- .../{CityServiceImplTest.kt => CityServiceImplFeatureTest.kt} | 4 ++-- .../demo/services/database/product/ProductServiceImplTest.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/test/kotlin/com/example/demo/services/database/city/{CityServiceImplTest.kt => CityServiceImplFeatureTest.kt} (97%) diff --git a/src/test/kotlin/com/example/demo/services/database/city/CityServiceImplTest.kt b/src/test/kotlin/com/example/demo/services/database/city/CityServiceImplFeatureTest.kt similarity index 97% rename from src/test/kotlin/com/example/demo/services/database/city/CityServiceImplTest.kt rename to src/test/kotlin/com/example/demo/services/database/city/CityServiceImplFeatureTest.kt index 35bc029..1cea4cb 100644 --- a/src/test/kotlin/com/example/demo/services/database/city/CityServiceImplTest.kt +++ b/src/test/kotlin/com/example/demo/services/database/city/CityServiceImplFeatureTest.kt @@ -3,8 +3,8 @@ package com.example.demo.services.database.city import com.example.demo.BaseFeatureTest import com.example.demo.models.City import com.example.demo.providers.CityRepository -import com.example.demo.services.database.exceptions.AlreadyDeletedException import com.example.demo.services.database.city.exceptions.CityNotFoundException +import com.example.demo.services.database.exceptions.AlreadyDeletedException import org.junit.jupiter.api.assertThrows import org.springframework.beans.factory.annotation.Autowired import org.springframework.test.context.ContextConfiguration @@ -12,7 +12,7 @@ import java.util.* import kotlin.test.* @ContextConfiguration(classes = [CityRepository::class, CityServiceImpl::class]) -class CityServiceImplTest: BaseFeatureTest() { +class CityServiceImplFeatureTest: BaseFeatureTest() { @Autowired private lateinit var cityRepository: CityRepository @Autowired diff --git a/src/test/kotlin/com/example/demo/services/database/product/ProductServiceImplTest.kt b/src/test/kotlin/com/example/demo/services/database/product/ProductServiceImplTest.kt index 97f098e..f82edbf 100644 --- a/src/test/kotlin/com/example/demo/services/database/product/ProductServiceImplTest.kt +++ b/src/test/kotlin/com/example/demo/services/database/product/ProductServiceImplTest.kt @@ -2,9 +2,9 @@ package com.example.demo.services.database.product import com.example.demo.models.Product import com.example.demo.providers.ProductRepository +import com.example.demo.services.database.product.exceptions.ProductNotFoundException import com.example.demo.services.kafka.Producer import com.example.demo.services.kafka.exceptions.InvalidArgumentException -import com.example.demo.services.database.product.exceptions.ProductNotFoundException import org.junit.jupiter.api.assertThrows import org.junit.runner.RunWith import org.mockito.kotlin.*