in Service Discovery by
Q:
Where is the WebMVC Test Annotation used?

1 Answer

0 votes
by

WebMvcTest Annotation is used for unit testing Spring MVC Applications, where the test objective is to focus on Spring MVC Components. 

Ex: @WebMvcTest(value = ToTestController.class, secure = false)

In the above example, the intention is to launch the ToTestController. All other controllers and mappings will not be launched when this unit test is executed.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked May 18, 2020 in JUnit by GeorgeBell
0 votes
asked Jan 7 in Other by SakshiSharma
0 votes
asked Feb 13, 2020 in JAVA by rahuljain1
0 votes
asked Sep 25, 2020 in Web Hosting by SakshiSharma
0 votes
asked Jan 21, 2020 in Agile by rahuljain1
...