cristianprofile / spring-boot-mvc-complete-example

spring boot mvc complete example integration and unit test with @config classes
54 stars 52 forks source link

test new spring-boot test features (unit and integration context configuration) #37

Closed cristianprofile closed 8 years ago

cristianprofile commented 8 years ago

@RunWith(SpringRunner.class) @SpringBootTest

@RunWith(SpringRunner.class) @WebMvcTest(UserVehicleController.class)

@RunWith(SpringRunner.class) @DataJpaTest

@RunWith(SpringRunner.class) @WebMvcTest(UserController.class) @AutoConfigureRestDocs("target/generated-snippets")

http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/boot-features-testing.html

cristianprofile commented 8 years ago

Another interesting link:

https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4