mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
create http package, move http classes to that package
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user