File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
samples/demo-authorizationserver/src/test/java/sample Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public void setUp() {
6767 this .webClient .getCookieManager ().clearCookies (); // log out
6868 }
6969
70- // @Test
70+ @ Test
7171 public void whenLoginSuccessfulThenDisplayBadRequestError () throws IOException {
7272 HtmlPage page = this .webClient .getPage ("/" );
7373
@@ -79,7 +79,7 @@ public void whenLoginSuccessfulThenDisplayBadRequestError() throws IOException {
7979 assertThat (signInResponse .getStatusCode ()).isEqualTo (HttpStatus .BAD_REQUEST .value ()); // there is no "default" index page
8080 }
8181
82- // @Test
82+ @ Test
8383 public void whenLoginFailsThenDisplayBadCredentials () throws IOException {
8484 HtmlPage page = this .webClient .getPage ("/" );
8585
@@ -90,14 +90,14 @@ public void whenLoginFailsThenDisplayBadCredentials() throws IOException {
9090 assertThat (alert .asNormalizedText ()).isEqualTo ("Invalid username or password." );
9191 }
9292
93- // @Test
93+ @ Test
9494 public void whenNotLoggedInAndRequestingTokenThenRedirectsToLogin () throws IOException {
9595 HtmlPage page = this .webClient .getPage (AUTHORIZATION_REQUEST );
9696
9797 assertLoginPage (page );
9898 }
9999
100- // @Test
100+ @ Test
101101 public void whenLoggingInAndRequestingTokenThenRedirectsToClientApplication () throws IOException {
102102 // Log in
103103 this .webClient .getOptions ().setThrowExceptionOnFailingStatusCode (false );
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void setUp() {
7777 when (this .authorizationConsentService .findById (any (), any ())).thenReturn (null );
7878 }
7979
80- // @Test
80+ @ Test
8181 @ WithMockUser ("user1" )
8282 public void whenUserConsentsToAllScopesThenReturnAuthorizationCode () throws IOException {
8383 final HtmlPage consentPage = this .webClient .getPage (this .authorizationRequestUri );
@@ -107,7 +107,7 @@ public void whenUserConsentsToAllScopesThenReturnAuthorizationCode() throws IOEx
107107 assertThat (location ).contains ("code=" );
108108 }
109109
110- // @Test
110+ @ Test
111111 @ WithMockUser ("user1" )
112112 public void whenUserCancelsConsentThenReturnAccessDeniedError () throws IOException {
113113 final HtmlPage consentPage = this .webClient .getPage (this .authorizationRequestUri );
You can’t perform that action at this time.
0 commit comments