File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
test/java/com/taskagile/web/apis Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ spring.mail.host=localhost
3737spring.mail.port =1025
3838spring.mail.properties.mail.smtp.auth =false
3939
40- logging.level.com.taskagile =DEBUG
41- logging.level.org.springframework.security =DEBUG
42-
4340# Actuator setting
4441management.server.port =9000
4542management.endpoint.health.show-details =always
Original file line number Diff line number Diff line change 1212import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
1313import org .springframework .boot .test .mock .mockito .MockBean ;
1414import org .springframework .http .MediaType ;
15+ import org .springframework .test .context .ActiveProfiles ;
1516import org .springframework .test .context .ContextConfiguration ;
1617import org .springframework .test .context .junit4 .SpringRunner ;
1718import org .springframework .test .web .servlet .MockMvc ;
2526@ RunWith (SpringRunner .class )
2627@ ContextConfiguration (classes = {SecurityConfiguration .class , RegistrationApiController .class })
2728@ WebMvcTest
29+ @ ActiveProfiles ("test" )
2830public class RegistrationApiControllerTests {
2931
3032 @ Autowired
Original file line number Diff line number Diff line change 88import org .springframework .security .authentication .AuthenticationManager ;
99import org .springframework .security .authentication .InsufficientAuthenticationException ;
1010import org .springframework .security .authentication .UsernamePasswordAuthenticationToken ;
11+ import org .springframework .test .context .ActiveProfiles ;
1112import org .springframework .test .context .junit4 .SpringRunner ;
1213
1314import java .io .IOException ;
1415
1516import static org .mockito .Mockito .verify ;
1617
1718@ RunWith (SpringRunner .class )
19+ @ ActiveProfiles ("test" )
1820public class AuthenticationFilterTests {
1921
2022 @ MockBean
You can’t perform that action at this time.
0 commit comments