Class SecurityTest


  • @ContextConfiguration
    @EnableConfigurationProperties(org.flasby.christmas.Config.class)
    @ComponentScan(basePackages={"org.flasby","org.flasby.security","org.flasby.christmas"})
    @EntityScan("org.flasby.entity")
    @TestPropertySource("classpath:/testing.testproperties")
    @SpringBootTest
    public class SecurityTest
    extends Object
    • Constructor Detail

      • SecurityTest

        public SecurityTest()
    • Method Detail

      • checkDenied

        @Test
        @WithMockUser(username="john",
                      authorities="AUTH_VIEWER")
        public void checkDenied()
      • checkAccepted

        @Test
        @WithMockUser(username="john",
                      authorities="AUTH_ADMIN")
        public void checkAccepted()