Sei que esse erro ja apareceu em forums anteriores porem apos seguir recomendações esse problema havia desaparecido, mas quando implementei o AutenticacaoControllerTest ele voltou ja testei em outras classes de test e o erro não aparece ele so aparece nessa classe
***************************
APPLICATION FAILED TO START
***************************
Description:
Field authManager in br.com.alura.forum.controller.AutenticacaoController required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration.