• Tutorials
  • Courses
  • Tracks

Question 3

Last Updated :
Discuss
Comments

How do you inject a TestRestTemplate instance into a test class?

new TestRestTemplate()

@Autowired TestRestTemplate restTemplate;

@TestRestTemplate

@InjectTestRestTemplate

Share your thoughts in the comments