2021
08-23
08-23
使用MockMvc进行controller层单元测试 事务自动回滚的完整案例
看代码吧~packagecom.ieou.ms_backend.controller;importcom.google.gson.Gson;importcom.ieou.ms_backend.dto.account.CreateAccountReq;importorg.junit.Before;importorg.junit.Test;importorg.junit.runner.RunWith;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.boot.test.context.SpringBootTest;importorg.springframework.http.MediaType;importorg.springframework...
继续阅读 >