create http package, move http classes to that package

This commit is contained in:
Denis Savosin
2024-10-02 12:05:21 +07:00
parent b89ee800ed
commit 16f43c6172
20 changed files with 38 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
package com.example.demo.controllers
package com.example.demo.http.controllers
import com.example.demo.http.controllers.GreetingController
import org.hamcrest.core.StringContains
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest

View File

@@ -1,7 +1,8 @@
package com.example.demo.controllers
package com.example.demo.http.controllers
import com.example.demo.http.controllers.ProductController
import com.example.demo.models.Product
import com.example.demo.responses.ResponseStatus
import com.example.demo.http.responses.ResponseStatus
import com.example.demo.services.ProductService
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.hamcrest.Matchers.contains

View File

@@ -1,5 +1,6 @@
package com.example.demo.controllers
package com.example.demo.http.controllers
import com.example.demo.http.controllers.ShopController
import com.example.demo.models.*
import com.example.demo.provider.ShopProvider
import org.mockito.kotlin.doReturn

View File

@@ -1,8 +1,8 @@
package com.example.demo.services
import com.example.demo.BaseFeatureTest
import com.example.demo.exceptions.NotFoundException
import com.example.demo.exceptions.UnprocessableException
import com.example.demo.http.exceptions.NotFoundException
import com.example.demo.http.exceptions.UnprocessableException
import com.example.demo.models.Product
import com.example.demo.provider.ProductRepository
import org.junit.jupiter.api.assertThrows

View File

@@ -1,6 +1,6 @@
package com.example.demo.services
import com.example.demo.exceptions.NotFoundException
import com.example.demo.http.exceptions.NotFoundException
import com.example.demo.models.Product
import com.example.demo.provider.ProductRepository
import com.example.demo.services.kafka.Producer