252
<logic:equal name="runTest" value="testErrorsDefaultBundle0ErrorsName">
253
<bean:define id="EXPECTED_RESULTS" toScope="page">
254
My Errors go here:<html:errors name="MY_ERRORS_KEY"/>
256
<bean:define id="TEST_RESULTS" toScope="page">
261
<logic:equal name="runTest" value="testErrorsDefaultBundle2ErrorsName">
263
//This should be done in your action. I do it here to keep the tests simple.
264
ActionErrors errors = new ActionErrors();
265
errors.add(ActionErrors.GLOBAL_ERROR,
266
new ActionError("default.testing.errors.tag"));
267
errors.add(ActionErrors.GLOBAL_ERROR,
268
new ActionError("default.testing.errors.tag2"));
269
request.setAttribute("MY_ERRORS_KEY", errors);
271
<bean:define id="EXPECTED_RESULTS" toScope="page">
272
My Errors go here:<html:errors name="MY_ERRORS_KEY"/>
274
<bean:define id="TEST_RESULTS" toScope="page">
275
My Errors go here:<default_errors_header><default_errors_prefix>My Errors Text<default_errors_suffix><default_errors_prefix>My Errors Text 2<default_errors_suffix><default_errors_footer>
279
<logic:equal name="runTest" value="testErrorsAlternateBundle0ErrorsName">
280
<bean:define id="EXPECTED_RESULTS" toScope="page">
281
My Errors go here:<html:errors name="MY_ERRORS_KEY"/>
283
<bean:define id="TEST_RESULTS" toScope="page">
288
<logic:equal name="runTest" value="testErrorsAlternateBundle2ErrorsName">
290
//This should be done in your action. I do it here to keep the tests simple.
291
ActionErrors errors = new ActionErrors();
292
errors.add(ActionErrors.GLOBAL_ERROR,
293
new ActionError("alternate.testing.errors.tag"));
294
errors.add(ActionErrors.GLOBAL_ERROR,
295
new ActionError("alternate.testing.errors.tag2"));
296
request.setAttribute("MY_ERRORS_KEY", errors);
298
<bean:define id="EXPECTED_RESULTS" toScope="page">
299
My Errors go here:<html:errors bundle="alternate" name="MY_ERRORS_KEY"/>
301
<bean:define id="TEST_RESULTS" toScope="page">
302
My Errors go here:<alternate_errors_header><alternate_errors_prefix>My Alternate Errors Text<alternate_errors_suffix><alternate_errors_prefix>My Alternate Errors Text 2<alternate_errors_suffix><alternate_errors_footer>
306
<logic:equal name="runTest" value="testErrorsDefaultBundle0ErrorsName_fr">
307
<bean:define id="EXPECTED_RESULTS" toScope="page">
308
My Errors go here:<html:errors name="MY_ERRORS_KEY"/>
310
<bean:define id="TEST_RESULTS" toScope="page">
315
<logic:equal name="runTest" value="testErrorsDefaultBundle2ErrorsName_fr">
317
//This should be done in your action. I do it here to keep the tests simple.
318
ActionErrors errors = new ActionErrors();
319
errors.add(ActionErrors.GLOBAL_ERROR,
320
new ActionError("default.testing.errors.tag"));
321
errors.add(ActionErrors.GLOBAL_ERROR,
322
new ActionError("default.testing.errors.tag2"));
323
request.setAttribute("MY_ERRORS_KEY", errors);
325
<bean:define id="EXPECTED_RESULTS" toScope="page">
326
My Errors go here:<html:errors name="MY_ERRORS_KEY"/>
328
<bean:define id="TEST_RESULTS" toScope="page">
329
My Errors go here:<default_errors_header_fr><default_errors_prefix_fr>My Errors Text (fr)<default_errors_suffix_fr><default_errors_prefix_fr>My Errors Text 2 (fr)<default_errors_suffix_fr><default_errors_footer_fr>
334
<logic:equal name="runTest" value="testErrorsAlternateBundle0ErrorsName_fr">
335
<bean:define id="EXPECTED_RESULTS" toScope="page">
336
My Errors go here:<html:errors name="MY_ERRORS_KEY"/>
338
<bean:define id="TEST_RESULTS" toScope="page">
343
<logic:equal name="runTest" value="testErrorsAlternateBundle2ErrorsName_fr">
345
//This should be done in your action. I do it here to keep the tests simple.
346
ActionErrors errors = new ActionErrors();
347
errors.add(ActionErrors.GLOBAL_ERROR,
348
new ActionError("alternate.testing.errors.tag"));
349
errors.add(ActionErrors.GLOBAL_ERROR,
350
new ActionError("alternate.testing.errors.tag2"));
351
request.setAttribute("MY_ERRORS_KEY", errors);
353
<bean:define id="EXPECTED_RESULTS" toScope="page">
354
My Errors go here:<html:errors bundle="alternate" name="MY_ERRORS_KEY"/>
356
<bean:define id="TEST_RESULTS" toScope="page">
357
My Errors go here:<alternate_errors_header_fr><alternate_errors_prefix_fr>My Alternate Errors Text (fr)<alternate_errors_suffix_fr><alternate_errors_prefix_fr>My Alternate Errors Text 2 (fr)<alternate_errors_suffix_fr><alternate_errors_footer_fr>
371
<logic:equal name="runTest" value="testErrorsDefaultBundle0ErrorsLocaleName">
372
<bean:define id="EXPECTED_RESULTS" toScope="page">
373
My Errors go here:<html:errors locale="MY_LOCALE_KEY" name="MY_ERRORS_KEY"/>
375
<bean:define id="TEST_RESULTS" toScope="page">
380
<logic:equal name="runTest" value="testErrorsDefaultBundle2ErrorsLocaleName">
382
//This should be done in your action. I do it here to keep the tests simple.
383
ActionErrors errors = new ActionErrors();
384
errors.add(ActionErrors.GLOBAL_ERROR,
385
new ActionError("default.testing.errors.tag"));
386
errors.add(ActionErrors.GLOBAL_ERROR,
387
new ActionError("default.testing.errors.tag2"));
388
request.setAttribute("MY_ERRORS_KEY", errors);
390
<bean:define id="EXPECTED_RESULTS" toScope="page">
391
My Errors go here:<html:errors locale="MY_LOCALE_KEY" name="MY_ERRORS_KEY"/>
393
<bean:define id="TEST_RESULTS" toScope="page">
394
My Errors go here:<default_errors_header_fr><default_errors_prefix_fr>My Errors Text (fr)<default_errors_suffix_fr><default_errors_prefix_fr>My Errors Text 2 (fr)<default_errors_suffix_fr><default_errors_footer_fr>
398
<logic:equal name="runTest" value="testErrorsAlternateBundle0ErrorsLocaleName">
399
<bean:define id="EXPECTED_RESULTS" toScope="page">
400
My Errors go here:<html:errors locale="MY_LOCALE_KEY" name="MY_ERRORS_KEY"/>
402
<bean:define id="TEST_RESULTS" toScope="page">
407
<logic:equal name="runTest" value="testErrorsAlternateBundle2ErrorsLocaleName">
409
//This should be done in your action. I do it here to keep the tests simple.
410
ActionErrors errors = new ActionErrors();
411
errors.add(ActionErrors.GLOBAL_ERROR,
412
new ActionError("alternate.testing.errors.tag"));
413
errors.add(ActionErrors.GLOBAL_ERROR,
414
new ActionError("alternate.testing.errors.tag2"));
415
request.setAttribute("MY_ERRORS_KEY", errors);
417
<bean:define id="EXPECTED_RESULTS" toScope="page">
418
My Errors go here:<html:errors locale="MY_LOCALE_KEY" bundle="alternate" name="MY_ERRORS_KEY"/>
420
<bean:define id="TEST_RESULTS" toScope="page">
421
My Errors go here:<alternate_errors_header_fr><alternate_errors_prefix_fr>My Alternate Errors Text (fr)<alternate_errors_suffix_fr><alternate_errors_prefix_fr>My Alternate Errors Text 2 (fr)<alternate_errors_suffix_fr><alternate_errors_footer_fr>
425
<logic:equal name="runTest" value="testErrorsDefaultBundle0ErrorsLocaleName_fr">
426
<bean:define id="EXPECTED_RESULTS" toScope="page">
427
My Errors go here:<html:errors locale="MY_LOCALE_KEY" name="MY_ERRORS_KEY"/>
429
<bean:define id="TEST_RESULTS" toScope="page">
434
<logic:equal name="runTest" value="testErrorsDefaultBundle2ErrorsLocaleName_fr">
436
//This should be done in your action. I do it here to keep the tests simple.
437
ActionErrors errors = new ActionErrors();
438
errors.add(ActionErrors.GLOBAL_ERROR,
439
new ActionError("default.testing.errors.tag"));
440
errors.add(ActionErrors.GLOBAL_ERROR,
441
new ActionError("default.testing.errors.tag2"));
442
request.setAttribute("MY_ERRORS_KEY", errors);
444
<bean:define id="EXPECTED_RESULTS" toScope="page">
445
My Errors go here:<html:errors locale="MY_LOCALE_KEY" name="MY_ERRORS_KEY"/>
447
<bean:define id="TEST_RESULTS" toScope="page">
448
My Errors go here:<default_errors_header_fr><default_errors_prefix_fr>My Errors Text (fr)<default_errors_suffix_fr><default_errors_prefix_fr>My Errors Text 2 (fr)<default_errors_suffix_fr><default_errors_footer_fr>
453
<logic:equal name="runTest" value="testErrorsAlternateBundle0ErrorsLocaleName_fr">
454
<bean:define id="EXPECTED_RESULTS" toScope="page">
455
My Errors go here:<html:errors locale="MY_LOCALE_KEY" name="MY_ERRORS_KEY"/>
457
<bean:define id="TEST_RESULTS" toScope="page">
462
<logic:equal name="runTest" value="testErrorsAlternateBundle2ErrorsLocaleName_fr">
464
//This should be done in your action. I do it here to keep the tests simple.
465
ActionErrors errors = new ActionErrors();
466
errors.add(ActionErrors.GLOBAL_ERROR,
467
new ActionError("alternate.testing.errors.tag"));
468
errors.add(ActionErrors.GLOBAL_ERROR,
469
new ActionError("alternate.testing.errors.tag2"));
470
request.setAttribute("MY_ERRORS_KEY", errors);
472
<bean:define id="EXPECTED_RESULTS" toScope="page">
473
My Errors go here:<html:errors locale="MY_LOCALE_KEY" bundle="alternate" name="MY_ERRORS_KEY"/>
475
<bean:define id="TEST_RESULTS" toScope="page">
476
My Errors go here:<alternate_errors_header_fr><alternate_errors_prefix_fr>My Alternate Errors Text (fr)<alternate_errors_suffix_fr><alternate_errors_prefix_fr>My Alternate Errors Text 2 (fr)<alternate_errors_suffix_fr><alternate_errors_footer_fr>
483
251
String expected = "";
484
252
String compareTo = "";