classify
precondition
test class
1 | SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
pom.xml
1 | <!-- jUnit test start --> |
with login, use token
CRUD: create read update delete
auto login beforeEach
1 | /** |
create
1 | /** |
read
1 | /** |
update
1 | /** |
delete
1 | /** |
- 本文作者: Linking
- 本文链接: https://linking.fun/2022/09/17/unit-test-in-SpringBoot-with-login-token/
- 版权声明: 版权所有,转载请注明出处!