Unit Test#
Unit Test Cases#
Mockito#
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
OrderService
OrderServiceImpl
ProductServiceTestConfig
MockitoDemoApplicationTests
Rest Controller Unit Test#
testCompile('org.springframework.boot:spring-boot-starter-test')
Writing a Unit Test for REST Controller#
AbstractTest
ProductServiceControllerTest