springcloud-community / springcloud-comment

0 stars 0 forks source link

post/2022-09/spring-boot-micro-service-test/ #11

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Unit and Integration Testing in Spring Boot Micro Service - Spring Cloud

Exploring unit and integration testing in Spring Boot microservices.

https://www.springcloud.io/post/2022-09/spring-boot-micro-service-test/

gmeazell commented 1 year ago

I don't get it. What is the value of testing your service layer if you're just going to have to provide the SQL to do the test? I want to ensure that when I create an object and send it to the service layer to be saved that it forms and executes the appropriate insert statement. Providing one that works in my test class defeats the purpose of testing.