Class ApplicationTests
- java.lang.Object
-
- org.oxerr.spring.security.otp.samples.helloworld.ApplicationTests
-
@SpringBootTest @AutoConfigureMockMvc class ApplicationTests extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.test.web.servlet.MockMvc
mockMvc
-
Constructor Summary
Constructors Constructor Description ApplicationTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
accessSecuredResourceAuthenticatedThenOk()
(package private) void
accessSecuredResourceUnauthenticatedThenRedirectsToLogin()
(package private) void
accessUnsecuredResourceThenOk()
(package private) void
loginWithInvalidUserThenUnauthenticated()
(package private) void
loginWithValidUserThenAuthenticated()
-
-
-
Method Detail
-
loginWithValidUserThenAuthenticated
@Test void loginWithValidUserThenAuthenticated() throws Exception
- Throws:
Exception
-
loginWithInvalidUserThenUnauthenticated
@Test void loginWithInvalidUserThenUnauthenticated() throws Exception
- Throws:
Exception
-
accessUnsecuredResourceThenOk
@Test void accessUnsecuredResourceThenOk() throws Exception
- Throws:
Exception
-
accessSecuredResourceUnauthenticatedThenRedirectsToLogin
@Test void accessSecuredResourceUnauthenticatedThenRedirectsToLogin() throws Exception
- Throws:
Exception
-
-