我有一个直接依赖于RestTemplate的类.我希望我有离线的JUnit测试.
我怎么能在我的单元测试中模拟RestTemplate?
java junit spring unit-testing resttemplate
java ×1
junit ×1
resttemplate ×1
spring ×1
unit-testing ×1