@@ -226,9 +226,10 @@ public void loginPageThenDefaultLoginPageIsRendered() throws Exception {
226
226
+ "<html lang=\" en\" >\n "
227
227
+ EXPECTED_HTML_HEAD
228
228
+ " <body>\n "
229
- + " <div class=\" content\" >\n "
229
+ + " <div class=\" content\" >\n "
230
230
+ " <form class=\" login-form\" method=\" post\" action=\" /login\" >\n "
231
231
+ " <h2>Please sign in</h2>\n "
232
+ + " \n "
232
233
+ " <p>\n "
233
234
+ " <label for=\" username\" class=\" screenreader\" >Username</label>\n "
234
235
+ " <input type=\" text\" id=\" username\" name=\" username\" placeholder=\" Username\" required autofocus>\n "
@@ -237,11 +238,15 @@ public void loginPageThenDefaultLoginPageIsRendered() throws Exception {
237
238
+ " <label for=\" password\" class=\" screenreader\" >Password</label>\n "
238
239
+ " <input type=\" password\" id=\" password\" name=\" password\" placeholder=\" Password\" required>\n "
239
240
+ " </p>\n "
241
+ + "\n "
240
242
+ "<input name=\" " + token .getParameterName () + "\" type=\" hidden\" value=\" " + token .getToken () + "\" />\n "
241
243
+ " <button type=\" submit\" class=\" primary\" >Sign in</button>\n "
242
244
+ " </form>\n "
243
- + "</div>\n "
244
- + "</body></html>" );
245
+ + "\n "
246
+ + "\n "
247
+ + " </div>\n "
248
+ + " </body>\n "
249
+ + "</html>" );
245
250
});
246
251
// @formatter:on
247
252
}
@@ -267,21 +272,26 @@ public void loginPageWhenErrorThenDefaultLoginPageWithError() throws Exception {
267
272
+ "<html lang=\" en\" >\n "
268
273
+ EXPECTED_HTML_HEAD
269
274
+ " <body>\n "
270
- + " <div class=\" content\" >\n "
275
+ + " <div class=\" content\" >\n "
271
276
+ " <form class=\" login-form\" method=\" post\" action=\" /login\" >\n "
272
277
+ " <h2>Please sign in</h2>\n "
273
- + "<div class=\" alert alert-danger\" role=\" alert\" >Bad credentials</div> <p>\n "
278
+ + " <div class=\" alert alert-danger\" role=\" alert\" >Bad credentials</div>\n "
279
+ + " <p>\n "
274
280
+ " <label for=\" username\" class=\" screenreader\" >Username</label>\n "
275
281
+ " <input type=\" text\" id=\" username\" name=\" username\" placeholder=\" Username\" required autofocus>\n "
276
282
+ " </p>\n " + " <p>\n "
277
283
+ " <label for=\" password\" class=\" screenreader\" >Password</label>\n "
278
284
+ " <input type=\" password\" id=\" password\" name=\" password\" placeholder=\" Password\" required>\n "
279
285
+ " </p>\n "
286
+ + "\n "
280
287
+ "<input name=\" " + token .getParameterName () + "\" type=\" hidden\" value=\" " + token .getToken () + "\" />\n "
281
288
+ " <button type=\" submit\" class=\" primary\" >Sign in</button>\n "
282
289
+ " </form>\n "
283
- + "</div>\n "
284
- + "</body></html>" );
290
+ + "\n "
291
+ + "\n "
292
+ + " </div>\n "
293
+ + " </body>\n "
294
+ + "</html>" );
285
295
});
286
296
// @formatter:on
287
297
}
@@ -311,22 +321,27 @@ public void loginPageWhenLoggedOutThenDefaultLoginPageWithLogoutMessage() throws
311
321
+ "<html lang=\" en\" >\n "
312
322
+ EXPECTED_HTML_HEAD
313
323
+ " <body>\n "
314
- + " <div class=\" content\" >\n "
324
+ + " <div class=\" content\" >\n "
315
325
+ " <form class=\" login-form\" method=\" post\" action=\" /login\" >\n "
316
326
+ " <h2>Please sign in</h2>\n "
317
- + "<div class=\" alert alert-success\" role=\" alert\" >You have been signed out</div> <p>\n "
327
+ + " <div class=\" alert alert-success\" role=\" alert\" >You have been signed out</div>\n "
328
+ + " <p>\n "
318
329
+ " <label for=\" username\" class=\" screenreader\" >Username</label>\n "
319
330
+ " <input type=\" text\" id=\" username\" name=\" username\" placeholder=\" Username\" required autofocus>\n "
320
331
+ " </p>\n "
321
332
+ " <p>\n "
322
333
+ " <label for=\" password\" class=\" screenreader\" >Password</label>\n "
323
334
+ " <input type=\" password\" id=\" password\" name=\" password\" placeholder=\" Password\" required>\n "
324
335
+ " </p>\n "
336
+ + "\n "
325
337
+ "<input name=\" " + token .getParameterName () + "\" type=\" hidden\" value=\" " + token .getToken () + "\" />\n "
326
338
+ " <button type=\" submit\" class=\" primary\" >Sign in</button>\n "
327
339
+ " </form>\n "
328
- + "</div>\n "
329
- + "</body></html>" );
340
+ + "\n "
341
+ + "\n "
342
+ + " </div>\n "
343
+ + " </body>\n "
344
+ + "</html>" );
330
345
});
331
346
// @formatter:on
332
347
}
@@ -356,9 +371,10 @@ public void loginPageWhenRememberConfigureThenDefaultLoginPageWithRememberMeChec
356
371
+ "<html lang=\" en\" >\n "
357
372
+ EXPECTED_HTML_HEAD
358
373
+ " <body>\n "
359
- + " <div class=\" content\" >\n "
374
+ + " <div class=\" content\" >\n "
360
375
+ " <form class=\" login-form\" method=\" post\" action=\" /login\" >\n "
361
376
+ " <h2>Please sign in</h2>\n "
377
+ + " \n "
362
378
+ " <p>\n "
363
379
+ " <label for=\" username\" class=\" screenreader\" >Username</label>\n "
364
380
+ " <input type=\" text\" id=\" username\" name=\" username\" placeholder=\" Username\" required autofocus>\n "
@@ -371,8 +387,11 @@ public void loginPageWhenRememberConfigureThenDefaultLoginPageWithRememberMeChec
371
387
+ "<input name=\" " + token .getParameterName () + "\" type=\" hidden\" value=\" " + token .getToken () + "\" />\n "
372
388
+ " <button type=\" submit\" class=\" primary\" >Sign in</button>\n "
373
389
+ " </form>\n "
374
- + "</div>\n "
375
- + "</body></html>" );
390
+ + "\n "
391
+ + "\n "
392
+ + " </div>\n "
393
+ + " </body>\n "
394
+ + "</html>" );
376
395
});
377
396
// @formatter:on
378
397
}
0 commit comments