Class InMemoryTest


  • @SpringBootTest(classes=TestConfiguration.class,
                    webEnvironment=RANDOM_PORT,
                    properties={"spring.main.web-application-type=servlet","spring.application.name=resourceserver-in-memory","management.endpoints.web.exposure.include=*","bremersee.actuator.auth.enable=auto","bremersee.actuator.auth.enable-cors=true","bremersee.auth.resource-server=auto","bremersee.auth.any-access-mode=deny_all","bremersee.auth.path-matchers[0].ant-pattern=/public/**","bremersee.auth.path-matchers[0].access-mode=permit_all","bremersee.auth.path-matchers[1].ant-pattern=/protected/**","bremersee.auth.path-matchers[1].http-method=POST","bremersee.auth.path-matchers[1].roles=ROLE_ADMIN","bremersee.auth.path-matchers[2].ant-pattern=/protected/**","bremersee.auth.path-matchers[2].roles=ROLE_USER","bremersee.auth.in-memory-users[0].name=user","bremersee.auth.in-memory-users[0].password=user","bremersee.auth.in-memory-users[0].authorities=ROLE_USER","bremersee.auth.in-memory-users[1].name=admin","bremersee.auth.in-memory-users[1].password=admin","bremersee.auth.in-memory-users[1].authorities=ROLE_ADMIN,ROLE_ACTUATOR_ADMIN","bremersee.auth.in-memory-users[2].name=someone","bremersee.auth.in-memory-users[2].password=someone","bremersee.auth.in-memory-users[2].authorities=ROLE_SOMETHING","bremersee.auth.in-memory-users[3].name=actuator","bremersee.auth.in-memory-users[3].password=actuator","bremersee.auth.in-memory-users[3].authorities=ROLE_ACTUATOR","bremersee.exception-mapping.api-paths=/**"})
    @TestInstance(PER_CLASS)
    public class InMemoryTest
    extends Object
    The in memory test.
    Author:
    Christian Bremer
    • Constructor Detail

      • InMemoryTest

        public InMemoryTest()