作者:b01453901 | 来源:互联网 | 2023-05-20 09:16
我的代码如下:
You have to Use Mockito And Junit and Spring Boot Tets.
1.Controler Test
Need to Mocko Serviceclass @Mock Service.
inject Controller class and call Method of Controller.
2.Service Test.
Need to Mocko Repository class @Mock Repository.
inject Service class and call Method of Service.
3.End To End Test
Use Restassure or Rest Template for Real SpringBoot Call.
Prepare Requests and call.
该块运行,但不会编织。我已经删除了“ dplyr”并替换了它。
谢谢。