title: @Autowired during testing
body: <p>I have a question.</p>
  
  <p>@Autowired annotation is not recomended since Spring Boot 2.x. Then I have to use constructor.</p>
  
  <p><a href="https://i.stack.imgur.com/wtScN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wtScN.png" alt="enter image description here"></a></p>
  
  <p>but in during testing (JUnit 5) i don't have any warning</p>
  
  <p><a href="https://i.stack.imgur.com/fvbrh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fvbrh.png" alt="enter image description here"></a></p>
  
  <p>Questions:</p>
  
  <p>that means using @Autowired during testing is good practicle ?</p>