💡 Spring Boot tip: @SpringBootTest(webEnvironment = RANDOM_PORT) allows integration tests on controllers.
✅ Starts a real embedded server
✅ The server runs on a random port.
✅ You can test controllers via TestRestTemplate or WebTestClient.
#SpringBoot#JavaDev
Spring Boot Tip 💡🍃
RestTestClient is a new unified REST APIs testing tool you can use instead of `WebTestClient`, `TestRestTemplate` (removed), or `MockMVC`. 👇
#springboot4#junit#restapi#springboottest
💡 Spring Boot tip: Use @SpringBootTest(webEnvironment = RANDOM_PORT) for integration tests when testing controllers.
✅ Starts a real embedded server
✅ Uses a random port.
✅ You can test controllers via TestRestTemplate or WebTestClient.
#SpringBoot
Day 159 of #100DaysOfCode ✅
• Wrote integration tests using WebTestClient 🧪
• Solved @LeetCode 25: Reverse Nodes in k-Group
• Designed a logo for my friend's startup
• Recreated the Google logo
Creative and productive day! 🚀
Day 158 of #100DaysOfCode ✅
• Worked with WebTestClient for integration tests 🧪
• Solved @LeetCode 37: Sudoku Solver
• Recreated the @twitter logo 🎨
• Took some much-needed rest
Progress continues, even with balance! 🚀
It's 157th Day of my 100DaysOfCode challenge,
and here's what I did today:
• Wrote tests using WebTestClient 🧪
• Solved @LeetCode 36: Valid Sudoku
• Edited a short video 🎥
• Read a chapter from a book 📚
Building momentum, one step at a time! 🚀
Day 56 of #100DaysOfCode v2! ✅
• Encountered and fixed bugs while testing with
WebTestClient 🐞
• Solved @LeetCode 9: Palindrome Number
• Visited Pashupatinath temple
• Took some rest due to festivals 🎉
Balancing debugging, coding, and celebrations! 🚀
Day 55 of #100DaysOfCode v2! ✅
• Solved @LeetCode 17: Letter Combinations of a Phone Number
• Set up WebTestClient for integration testing and tested a class 🧪
• Took some rest due to a festival celebration 🎉
Easing back into the groove post-exams! 🚀
🧪 Dive into Spring Boot testing with MockMvc, WebTestClient, and TestRestTemplate!
Find out how these tools differ and when to use each one for testing your controller endpoints. 🔍
rieckpil.de/spring-boot-test…
💡 Spring Boot developers! Discover the tools to test your controller endpoints: MockMvc, WebTestClient, & TestRestTemplate. Learn their differences and best use cases! 🚀
Read more: rieckpil.de/spring-boot-test…
🔍 Choosing the right "testing client" in Spring Boot can be tricky
Should you go for MockMvc, WebTestClient, or TestRestTemplate? 🤔
Get the answer here 👇🏻
rieckpil.de/spring-boot-test…