We can use this new feature by creating the MockMvcTester for our class, for example
Read more π https://lttr.ai/AeWRW
We can use this new feature by creating the MockMvcTester for our class, for example
Read more π https://lttr.ai/AeWRW
[ΠΠ΅ΡΠ΅Π²ΠΎΠ΄] Π‘ΡΠ°Π²Π½Π΅Π½ΠΈΠ΅ SpringRunner ΡΠΎ SpringExtension ΠΈ @SpringBootTest
ΠΠΎΠΌΠ°Π½Π΄Π° Spring ΠΠΉΠ ΠΏΠ΅ΡΠ΅Π²Π΅Π»Π° ΡΡΠ°ΡΡΡ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ ΠΈ ΠΊΠΎΠ³Π΄Π° ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ SpringRunner , SpringExtension ΠΈ @SpringBootTest , ΠΊΠΎΠ³Π΄Π° ΠΈΡ ΡΠ΅Π»Π΅ΡΠΎΠΎΠ±ΡΠ°Π·Π½ΠΎ ΠΊΠΎΠΌΠ±ΠΈΠ½ΠΈΡΠΎΠ²Π°ΡΡ ΠΈ ΠΊΠ°ΠΊ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎΠ΅ ΠΏΠΎΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅ ΡΡΠΈΡ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½ΡΠΎΠ² ΠΌΠΎΠΆΠ΅Ρ ΠΏΠΎΠΌΠΎΡΡ ΡΠ΄Π΅Π»Π°ΡΡ ΡΠ΅ΡΡΡ ΠΏΡΠΎΡΠ΅, Π±ΡΡΡΡΠ΅Π΅ ΠΈ Π±ΠΎΠ»Π΅Π΅ ΡΠ·ΠΊΠΎΠ½Π°ΠΏΡΠ°Π²Π»Π΅Π½Π½ΡΠΌΠΈ.
https://habr.com/ru/companies/spring_aio/articles/894400/
#SpringRunner #SpringExtension #SpringBootTest #junit #spring #MockMvc #Spring_Boot
Spring Framework 6.2 was released, and now we have a new and better way to test our REST endpoints.
Read more π https://lttr.ai/AZvuA
New way to test your REST API with Spring
βΈ https://lttr.ai/AZvt7
Spring introduces a MockMvc Tester that integrates with AssertJ, making our API tests clearer and easier to read than ever.
Read the full article: New way to test your REST API with Spring
βΈ https://lttr.ai/AZvt3
Spring is improving and introducing new and better ways to do old things, MockMvcTester is a good way to test your REST API using a fluent API.
Read the full article: New way to test your REST API with Spring
βΈ https://lttr.ai/AZRIB
How to Write #mockmvc Tests Without ObjectMapper: https://www.petrikainulainen.net/programming/testing/how-to-write-mockmvc-tests-without-objectmapper-part-two-using-a-template-engine/ - You can use #thymeleaf