-
Notifications
You must be signed in to change notification settings - Fork 55
/
URLClient.java
1215 lines (1114 loc) · 48.3 KB
/
URLClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
/*
* $Id$
*/
package com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand;
import java.io.PrintWriter;
import com.sun.javatest.Status;
import com.sun.ts.lib.harness.EETest;
import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient;
import jakarta.faces.component.NamingContainer;
import jakarta.faces.component.UIComponent;
import jakarta.faces.component.UIViewRoot;
public class URLClient extends BaseUIComponentClient {
private static final String CONTEXT_ROOT = "/jsf_comp_command_web";
public static void main(String[] args) {
URLClient theTests = new URLClient();
Status s = theTests.run(args, new PrintWriter(System.out),
new PrintWriter(System.err));
s.exit();
}
public Status run(String args[], PrintWriter out, PrintWriter err) {
// don't reset the context root if already been set
if (getContextRoot() == null) {
setContextRoot(CONTEXT_ROOT);
}
// don't reset the Servlet name if already set
if (getServletName() == null) {
setServletName(DEFAULT_SERVLET_NAME);
}
return super.run(args, out, err);
}
/*
* @class.setup_props: webServerHost; webServerPort; ts_home;
*/
/* Run tests */
// ------------------------------------------------------------- Test
// Methods
// ------------------------------------------------------------- UIComponent
/**
* @testName: uiComponentEncodeBeginNotRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:488
* @test_Strategy: Verify that the component doesn't delegate the
* encodeBegin() call when the rendered property of the
* component is false.
*/
public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault {
super.uiComponentEncodeBeginNotRenderedTest();
}
/**
* @testName: uiComponentEncodeBeginNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:490; JSF:JAVADOC:586
* @test_Strategy: Verify an NPE is thrown if the <code>context</code>
* argument is null.
*/
public void uiComponentEncodeBeginNPETest() throws EETest.Fault {
super.uiComponentEncodeBeginNPETest();
}
/**
* @testName: uiComponentEncodeBeginELTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:488
* @test_Strategy: Verify that when encodeBegin() is called that a call is
* made to
* pushComponentToEL(jakarta.faces.context.FacesContext).
*
* @since 2.0
*/
public void uiComponentEncodeBeginELTest() throws EETest.Fault {
super.uiComponentEncodeBeginELTest();
}
/**
* @testName: uiComponentEncodeBeginTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:488
* @test_Strategy: Verify that when encodeBegin() is called on the component
* under test, it delegates this call to the encodeBegin()
* method of the Renderer
*/
public void uiComponentEncodeBeginTest() throws EETest.Fault {
super.uiComponentEncodeBeginTest();
}
/**
* @testName: uiComponentEncodeChildrenNotRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:491
* @test_Strategy: Verify that the component doesn't delegate the
* encodeChildren() call when the rendered property of the
* component is false.
*/
public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault {
super.uiComponentEncodeChildrenNotRenderedTest();
}
/**
* @testName: uiComponentEncodeChildrenNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:493; JSF:JAVADOC:589
* @test_Strategy: Verify an NPE is thrown if the <code>context</code>
* argument is null.
*/
public void uiComponentEncodeChildrenNPETest() throws EETest.Fault {
super.uiComponentEncodeChildrenNPETest();
}
/**
* @testName: uiComponentEncodeChildrenTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:491
* @test_Strategy: Verify that when encodeChildren() is called on the
* component under test, it delegates this call to the
* encodeChildren() method of the Renderer
*/
public void uiComponentEncodeChildrenTest() throws EETest.Fault {
super.uiComponentEncodeChildrenTest();
}
/**
* @testName: uiComponentEncodeEndNotRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:494
* @test_Strategy: Verify that the component doesn't delegate the encodeEnd()
* call when the rendered property of the component is false.
*/
public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault {
super.uiComponentEncodeEndNotRenderedTest();
}
/**
* @testName: uiComponentEncodeEndNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:496; JSF:JAVADOC:592
* @test_Strategy: Verify an NPE is thrown if the <code>context</code>
* argument is null.
*/
public void uiComponentEncodeEndNPETest() throws EETest.Fault {
super.uiComponentEncodeEndNPETest();
}
/**
* @testName: uiComponentEncodeEndTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:494
* @test_Strategy: Verify that when encodeEnd() is called on the component
* under test, it delegates this call to the encodeEnd()
* method of the Renderer
*/
public void uiComponentEncodeEndTest() throws EETest.Fault {
super.uiComponentEncodeEndTest();
}
/**
* @testName: uiComponentEncodeAllNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:487
* @test_Strategy: Verify that when encodeAll() is called passing null as the
* context, a NullPointException is thrown.
*
* @since 2.0
*/
public void uiComponentEncodeAllNPETest() throws EETest.Fault {
super.uiComponentEncodeAllNPETest();
}
/**
* @testName: uiCommandBroadcastNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:461; JSF:JAVADOC:481;
* JSF:JAVADOC:580
* @testStrategy: Verify that if the FacesContext is passed in a
* NullPointerException is thrown.
*/
public void uiCommandBroadcastNPETest() throws Fault {
TEST_PROPS.setProperty(APITEST, "uiCommandBroadcastNPETest");
invoke();
}
/**
* @testName: uiComponentEncodeEndELTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:494
* @test_Strategy: Verify that when encodeEnd() is called on the component
* under test, it calls
* popComponentFromEL(jakarta.faces.context.FacesContext).
*
* @since 2.0
*/
public void uiComponentEncodeEndELTest() throws EETest.Fault {
super.uiComponentEncodeEndELTest();
}
/**
* @testName: uiComponentFindComponentIAETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:498; JSF:JAVADOC:594
* @test_Strategy: Verify an IllegalArgumentException is thrown by
* findComponent when an intermediate identifier in a search
* expression identifies a UIComponent that is not a
* NamingContainer
*/
public void uiComponentFindComponentIAETest() throws EETest.Fault {
super.uiComponentFindComponentIAETest();
}
/**
* @testName: uiComponentFindComponentNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:499; JSF:JAVADOC:595
* @test_Strategy: Verify a NullPointerException is thrown if expr is null.
*/
public void uiComponentFindComponentNPETest() throws EETest.Fault {
super.uiComponentFindComponentNPETest();
}
/**
* @testName: uiComponentFindComponentTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:497; JSF:JAVADOC:593
* @test_Strategy: Validate the behavior of findConponent(): - Identify the
* UIComponent that will be the base for searching, by
* stopping as soon as one of the following conditions is met:
* o If the search expression begins with the the separator
* character (called an "absolute" search expression), the
* base will be the root UIComponent of the component tree.
* The leading separator character will be stripped off, and
* the remainder of the search expression will be treated as a
* "relative" search expression as described below. o
* Otherwise, if this UIComponent is a NamingContainer it will
* serve as the basis. o Otherwise, search up the parents of
* this component. If a NamingContainer is encountered, it
* will be the base. o Otherwise (if no NamingContainer is
* encountered) the root UIComponent will be the base. - The
* search expression (possibly modified in the previous step)
* is now a "relative" search expression that will be used to
* locate the component (if any) that has an id that matches,
* within the scope of the base component. The match is
* performed as follows: o If the search expression is a
* simple identifier, this value is compared to the id
* property, and then recursively through the facets and
* children of the base UIComponent (except that if a
* descendant NamingContainer is found, its own facets and
* children are not searched). o If the search expression
* includes more than one identifier separated by the
* separator character, the first identifier is used to locate
* a NamingContainer by the rules in the previous bullet
* point. Then, the findComponent() method of this
* NamingContainer will be called, passing the remainder of
* the search expression.
*/
public void uiComponentFindComponentTest() throws EETest.Fault {
super.uiComponentFindComponentTest();
}
/**
* @testName: uiComponentGetAttributesTest
* @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:477; JSF:JAVADOC:500
* @test_Strategy: Assert the following:
* <ul>
* <li>The <code>Map</code> implementation must implement the
* <code>java.io.Serializable</code> interface.</li>
* <li>Any attempt to add a <code>null</code> key or value
* must throw a <code>NullPointerException</code>.</li>
* <li>Any attempt to add a key that is not a String must
* throw a <code>ClassCastException</code>.</li>
* <li>If the attribute name specified as a key matches a
* property of this {@link UIComponent}'s implementation
* class, the following methods will have special behavior:
* <ul>
* <li><code>containsKey</code> - Return <code>false</code>.
* </li>
* <li><code>remove</code> - Throw
* <code>IllegalArgumentException</code>.</li>
* </ul>
* </li>
* </ul>
*
*/
public void uiComponentGetAttributesTest() throws EETest.Fault {
super.uiComponentGetAttributesTest();
}
/**
* @testName: uiComponentGetChildCountTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:501
* @test_Strategy: Validate getChildCount() returns the expected value.
*/
public void uiComponentGetChildCountTest() throws EETest.Fault {
super.uiComponentGetChildCountTest();
}
/**
* @testName: uiComponentGetChildrenTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:502
* @test_Strategy: Verify the following: * implementation must support all of
* the standard and optional <code>List</code> methods, plus
* support the following additional requirements:
* </p>
* <ul>
* <li>The <code>List</code> implementation must implement the
* <code>java.io.Serializable</code> interface.</li>
* <li>Any attempt to add a <code>null</code> must throw a
* NullPointerException</li>
* <li>Any attempt to add an object that does not implement
* {@link UIComponent} must throw a ClassCastException.</li>
*
* <li>Any attempt to add a child {@link UIComponent} with a
* non-null <code>componentId</code> that contains invalid
* characters, or begins with
* {@link NamingContainer#SEPARATOR_CHAR}, or
* {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than
* letters, digits, '-', or '_') must throw
* IllegalArgumentException.</li>
*
* <li>Whenever a new child component is added:
* <ul>
* <li>The <code>parent</code> property of the child must be
* set to this component instance.</li>
* </ul>
* </li>
* <li>Whenever an existing child component is removed:
* <ul>
* <li>The <code>parent</code> property of the child must be
* set to <code>null</code>.</li>
* </ul>
* </li>
* </ul>
*/
public void uiComponentGetChildrenTest() throws EETest.Fault {
super.uiComponentGetChildrenTest();
}
/**
* @testName: uiComponentGetClientIdNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:505; JSF:JAVADOC:601
* @test_Strategy: Verify getClientId() throws NPE if the <code>context</code>
* argument is null.
*/
public void uiComponentGetClientIdNPETest() throws EETest.Fault {
super.uiComponentGetClientIdNPETest();
}
/**
* @testName: uiComponentGetClientIdTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:503
* @test_Strategy: Verify getClientId() returns a non-null value.
*/
public void uiComponentGetClientIdTest() throws EETest.Fault {
super.uiComponentGetClientIdTest();
}
/**
* @testName: uiComponentGetClientIdContextTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:504
* @test_Strategy: Verify getClientId() returns a non-null value.
*/
public void uiComponentGetClientIdContextTest() throws EETest.Fault {
super.uiComponentGetClientIdContextTest();
}
/**
* @testName: uiComponentGetCurrentComponentTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:509
* @test_Strategy: Verify getCurrentComponent() returns current component that
* is processing.
*/
public void uiComponentGetCurrentComponentTest() throws EETest.Fault {
super.uiComponentGetCurrentComponentTest();
}
/**
* @testName: uiComponentGetCurrentComponentNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:510
* @test_Strategy: Verify getCurrentComponent(null) throws a
* NullPointerException when arg "FacesContext" is null.
*/
public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault {
super.uiComponentGetCurrentComponentNPETest();
}
/**
* @testName: uiComponentGetCurrentComponentNullTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:509
* @test_Strategy: Verify getCurrentComponent() returns null return null if
* there is no currently processing UIComponent
*/
public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault {
super.uiComponentGetCurrentComponentNullTest();
}
/**
* @testName: uiComponentGetCurrentCompositeComponentNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:512
* @test_Strategy: Verify getCurrentCompositeComponent(null) throws a
* NullPointerException when arg "FacesContext" is null.
*/
public void uiComponentGetCurrentCompositeComponentNPETest()
throws EETest.Fault {
super.uiComponentGetCurrentCompositeComponentNPETest();
}
/**
* @testName: uiComponentGetCurrentCompositeComponentNullTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:511
* @test_Strategy: Verify getCurrentCompositeComponent() returns null return
* null if there is no currently processing UIComponent
*/
public void uiComponentGetCurrentCompositeComponentNullTest()
throws EETest.Fault {
super.uiComponentGetCurrentCompositeComponentNullTest();
}
/**
* @testName: uiComponentIsCompositeComponentNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:535
* @test_Strategy: Verify isCompositeComponent(null) throws a
* NullPointerException when arg "FacesContext" is null.
*/
public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault {
super.uiComponentIsCompositeComponentNPETest();
}
/**
* @testName: uiComponentIsCompositeComponentNegTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:534
* @test_Strategy: Verify isCompositeComponent() returns false return null if
* there is no currently processing UIComponent
*/
public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault {
super.uiComponentIsCompositeComponentNegTest();
}
/**
* @testName: uiComponentGetFacetsAndChildrenTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:516
* @test_Strategy: Ensure the Iterator returned has the expected values, and
* in the case of the UIComponent instances contained in the
* iterator, ensure the order is correct.
*/
public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault {
super.uiComponentGetFacetsAndChildrenTest();
}
/**
* @testName: uiComponentGetFacetsTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:515
* @test_Strategy: Assert the following: The returned implementation must
* support all of the standard and optional <code>Map</code>
* methods, plus support the following additional
* requirements:
* </p>
* <ul>
* <li>The <code>Map</code> implementation must implement the
* <code>java.io.Serializable</code> interface.</li>
* <li>Any attempt to add a <code>null</code> key or value
* must throw a NullPointerException.</li>
* <li>Any attempt to add a key that is not a String must
* throw a ClassCastException.</li>
* <li>Any attempt to add a value that is not a
* {@link UIComponent} must throw a ClassCastException.</li>
* <li>Whenever a new facet {@link UIComponent} is added:
* <ul>
* <li>The <code>parent</code> property of the component must
* be set to this component instance.</li>
* </ul>
* </li>
* <li>Whenever an existing facet {@link UIComponent} is
* removed:
* <ul>
* <li>The <code>parent</code> property of the facet must be
* set to <code>null</code>.</li>
* </ul>
* </li>
* </ul>
*/
public void uiComponentGetFacetsTest() throws EETest.Fault {
super.uiComponentGetFacetsTest();
}
/**
* @testName: uiComponentGetFacetTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:513
* @test_Strategy: Ensure a facet of a component can be obtained by name.
*/
public void uiComponentGetFacetTest() throws EETest.Fault {
super.uiComponentGetFacetTest();
}
/**
* @testName: uiComponentGetFacetCountTest
* @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605
* @test_Strategy: Validate that we receive 1 or more facets.
*/
public void uiComponentGetFacetCountTest() throws EETest.Fault {
super.uiComponentGetFacetCountTest();
}
/**
* @testName: uiComponentGetFamilyTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:517; JSF:JAVADOC:466
* @test_Strategy: Ensure we receive the correct component family.
*/
public void uiComponentGetFamilyTest() throws EETest.Fault {
super.uiComponentGetFamilyTest();
}
/**
* @testName: uiComponentGetRendersChildrenTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:524
* @test_Strategy: Verify getRendersChildren() returns the expected value by
* obtaining this components Renderer and calling
* getRendersChildren() in the Renderer, and comparing that
* value with what is returned by calling getRendersChildren()
* on the component.
*/
public void uiComponentGetRendersChildrenTest() throws EETest.Fault {
super.uiComponentGetRendersChildrenTest();
}
/**
* @testName: uiComponentGetSetIdTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:518;JSF:JAVADOC:558
* @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is
* returned.
*/
public void uiComponentGetSetIdTest() throws EETest.Fault {
super.uiComponentGetSetIdTest();
}
/**
* @testName: uiComponentGetSetParentTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:522;JSF:JAVADOC:561
* @test_Strategy: Verify {get,set}Parent() - if a value is set, the same
* value is returned.
*/
public void uiComponentGetSetParentTest() throws EETest.Fault {
super.uiComponentGetSetParentTest();
}
/**
* @testName: uiComponentQueueEventNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:561; JSF:JAVADOC:632;
* JSF:JAVADOC:557
* @test_Strategy: Validate that a NullPointerException is thrown when arg is
* null.
*/
public void uiComponentQueueEventNPETest() throws EETest.Fault {
super.uiComponentQueueEventNPETest();
}
/**
* @testName: uiComponentRestoreAttachedStateNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:550; JSF:JAVADOC:635
* @test_Strategy: Validate a NullPointerException is thrown if context is
* null.
*
*/
public void uiComponentRestoreAttachedStateNPETest() throws Fault {
super.uiComponentRestoreAttachedStateNPETest();
}
/**
* @testName: uiComponentSaveAttachedStateNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:550; JSF:JAVADOC:638
* @test_Strategy: Validate a NullPointerException is thrown if context is
* null.
*
*/
public void uiComponentSaveAttachedStateNPETest() throws Fault {
super.uiComponentSaveAttachedStateNPETest();
}
/**
* @testName: uiComponentGetSetRendererTypeTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:523;JSF:JAVADOC:563
* @test_Strategy: Verify {get,set}Parent() - if a value is set, the same
* value is returned. Also verify that the default return
* value. If a component is specified as having a specific
* Renderer type, ensure that value is returned, otherwise
* ensure that null is returned.
*/
public void uiComponentGetSetRendererTypeTest() throws EETest.Fault {
super.uiComponentGetSetRendererTypeTest();
}
/**
* @testName: uiComponentInvokeOnComponentTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:531; JSF:JAVADOC:614
* @test_Strategy: Validate the behavior of InvokeOnComponent():
*/
public void uiComponentInvokeOnComponentTest() throws EETest.Fault {
super.uiComponentInvokeOnComponentTest();
}
/**
* @testName: uiComponentInvokeOnComponentNegativeTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:531; JSF:JAVADOC:532;
* JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616
* @test_Strategy: Validate the negative behavior of InvokeOnComponent():
*/
public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault {
super.uiComponentInvokeOnComponentNegativeTest();
}
/**
* @testName: uiComponentIsSetRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:537; JSF:JAVADOC:562
* @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same
* value is returned.
*/
public void uiComponentIsSetRenderedTest() throws EETest.Fault {
super.uiComponentIsSetRenderedTest();
}
/**
* @testName: uiComponentIsInViewTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:536
* @test_Strategy: Verify isInView() Returns true if the component is in the
* current view.
*/
public void uiComponentIsInViewTest() throws EETest.Fault {
super.uiComponentIsInViewTest();
}
/**
* @testName: uiComponentIsInViewNegTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:536
* @test_Strategy: Verify isInView() Returns true if the component is in the
* current view.
*/
public void uiComponentIsInViewNegTest() throws EETest.Fault {
super.uiComponentIsInViewNegTest();
}
/**
* @testName: uiComponentProcessDecodesNotRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:541
* @test_Strategy: Assert the following when processDecodes() is called and
* the component's rendered property is false: - If the
* rendered property of this UIComponent is false, skip
* further processing.
*/
public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault {
super.uiComponentProcessDecodesNotRenderedTest();
}
/**
* @testName: uiComponentProcessDecodesRenderResponseTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:541
* @test_Strategy: Assert renderResponse() is called if a RuntimeException is
* thrown when calling decode() on a particular component.
*/
public void uiComponentProcessDecodesRenderResponseTest()
throws EETest.Fault {
super.uiComponentProcessDecodesRenderResponseTest();
}
/**
* @testName: uiComponentProcessDecodesTest
* @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:477; JSF:JAVADOC:541
* @test_Strategy: Assert the following when processDecodes is called: # Call
* the processDecodes() method of all facets and children of
* this UIComponent. # Call the decode() method of this
* component, if this component's rendered property is true
* and it is not nested in a parent component whose
* rendersChildren property is true but whose rendered
* property is false.
*/
public void uiComponentProcessDecodesTest() throws EETest.Fault {
super.uiComponentProcessDecodesTest();
}
/**
* @testName: uiComponentProcessDecodesNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:542; JSF:JAVADOC:621
* @test_Strategy: Validate a NullPointerException is thrown when arg is null.
*/
public void uiComponentProcessDecodesNPETest() throws EETest.Fault {
super.uiComponentProcessDecodesNPETest();
}
/**
* @testName: uiComponentProcessSaveRestoreStateTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:545;JSF:JAVADOC:547
* @test_Strategy: Assert the following when process{Save,Restore}State() is
* called: - Call the process{Save,Restore}State() method of
* all facets and children of this UIComponent in the order
* determined by a call to getFacetsAndChildren(). - Call the
* {save,restore}State() method of this component.
*/
public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault {
super.uiComponentProcessSaveRestoreStateTest();
}
/**
* @testName: uiComponentProcessSaveStateNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:548; JSF:JAVADOC:625
* @test_Strategy: Validate that a NullPointerException is thrown when context
* is null.
*/
public void uiComponentProcessSaveStateNPETest() throws EETest.Fault {
super.uiComponentProcessSaveStateNPETest();
}
/**
* @testName: uiComponentProcessRestoreStateNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:546; JSF:JAVADOC:623
* @test_Strategy: Validate that a NullPointerException is thrown when context
* is null.
*/
public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault {
super.uiComponentProcessRestoreStateNPETest();
}
/**
* @testName: uiComponentProcessSaveStateTransientTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:545;JSF:JAVADOC:547
* @test_Strategy: Verify that when a component is marked transient, that
* saveState() is not called, nor is
* processSaveState()/saveState() is called on any children of
* the transient component.
*/
public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault {
super.uiComponentProcessSaveStateTransientTest();
}
/**
* @testName: uiComponentProcessUpdatesNotRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:549
* @test_Strategy: Assert the following when processUpdates() is called and
* the component's rendered property is false: - If the
* rendered property of this UIComponent is false, skip
* further processing.
*/
public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault {
super.uiComponentProcessUpdatesNotRenderedTest();
}
/**
* @testName: uiComponentProcessUpdatesRenderResponseTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:549
* @test_Strategy: Assert the following when calling processUpdates() and a
* component is marked as invalid: If the valid property of
* this UIComponent is now false, call
* FacesContext.renderResponse() to transfer control at the
* end of the current phase.
*/
public void uiComponentProcessUpdatesRenderResponseTest()
throws EETest.Fault {
super.uiComponentProcessUpdatesRenderResponseTest();
}
/**
* @testName: uiComponentProcessUpdatesTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:549; JSF:JAVADOC:763
* @test_Strategy: Assert the following when processUpdates() is called: #
* Call the processUpdates() method of all facets and children
* of this UIComponent. # If the current component is an
* UIInput, call its updateModel() method of this component,
* if this component's rendered property is true and it is not
* nested in a parent component whose rendersChildren property
* is true but whose rendered property is false.
*/
public void uiComponentProcessUpdatesTest() throws EETest.Fault {
super.uiComponentProcessUpdatesTest();
}
/**
* @testName: uiComponentProcessUpdatesNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:550; JSF:JAVADOC:627
* @test_Strategy: Validate a NullPointerException is thrown if context is
* null.
*
* @since 2.0
*/
public void uiComponentProcessUpdatesNPETest() throws EETest.Fault {
super.uiComponentProcessUpdatesNPETest();
}
/**
* @testName: uiComponentProcessValidatorsIsValidRenderResponseTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628
* @test_Strategy: Assert the following when processValidators() is called and
* the component has been marked invalid: - If the isValid()
* method of this component returns false, call the
* renderResponse() method on the FacesContext instance for
* this request.
*/
public void uiComponentProcessValidatorsIsValidRenderResponseTest()
throws EETest.Fault {
super.uiComponentProcessValidatorsIsValidRenderResponseTest();
}
/**
* @testName: uiComponentProcessValidatorsNotRenderedTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628
* @test_Strategy: Assert the following when processValidators() is called and
* the component's rendered property is false: - If the
* rendered property of this UIComponent is false, skip
* further processing.
*/
public void uiComponentProcessValidatorsNotRenderedTest()
throws EETest.Fault {
super.uiComponentProcessValidatorsNotRenderedTest();
}
/**
* @testName: uiComponentProcessValidatorsRenderResponseTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628
* @test_Strategy: Assert renderResponse() is called if a RuntimeException is
* thrown when calling validate() on a particular component.
*/
public void uiComponentProcessValidatorsRenderResponseTest()
throws EETest.Fault {
super.uiComponentProcessValidatorsRenderResponseTest();
}
/**
* @testName: uiComponentProcessValidatorsTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628
* @test_Strategy: Assert the following when processValidators() is called: #
* Call the processValidators() method of all facets and
* children of this UIComponent. # If the current component is
* an UIInput, call its validate() method, if this component's
* rendered property is true and it is not nested in a parent
* component whose rendersChildren property is true but whose
* rendered property is false.
*/
public void uiComponentProcessValidatorsTest() throws EETest.Fault {
super.uiComponentProcessValidatorsTest();
}
/**
* @testName: uiComponentProcessValidatorsNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:552; JSF:JAVADOC:629
* @test_Strategy: Validate that a NullPointerException is thrown when
* argument is null.
*/
public void uiComponentProcessValidatorsNPETest() throws EETest.Fault {
super.uiComponentProcessValidatorsNPETest();
}
/**
* @testName: uiComponentPushComponentToELTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:553
* @test_Strategy: Assert that a call to pushComponentToEL does put a
* UIComponent onto the EL stack, and that another call to the
* method causes the newly added component to be the current
* component.
*/
public void uiComponentPushComponentToELTest() throws EETest.Fault {
super.uiComponentPushComponentToELTest();
}
/**
* @testName: uiComponentPushComponentToELNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:554
* @test_Strategy: Validate hat a NullPointerException is thrown when
* FacesContext is null.
*/
public void uiComponentPushComponentToELNPETest() throws EETest.Fault {
super.uiComponentPushComponentToELNPETest();
}
/**
* @testName: uiComponentPopComponentFromELTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:539
* @test_Strategy: Assert that a call to popComponentToEL removes "this"
* component as being the current component and that the
* previous UIComponent is set to the current component being
* processed.
*/
public void uiComponentPopComponentFromELTest() throws EETest.Fault {
super.uiComponentPopComponentFromELTest();
}
/**
* @testName: uiComponentPopComponentFromELNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:540
* @test_Strategy: Assert that a call to popComponentToEL removes "this"
* component as being the current component and that the
* previous UIComponent is set to the current component being
* processed.
*/
public void uiComponentPopComponentFromELNPETest() throws EETest.Fault {
super.uiComponentPopComponentFromELNPETest();
}
/**
* @testName: uiComponentSetIdRestrictionsTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:640; JSF:JAVADOC:559
* @test_Strategy: Verify that component under test enforces the component ID
* restrictions as specified: # Must not be a zero-length
* String. # First character must be a letter or an underscore
* ('_'). # Subsequent characters must be a letter, a digit,
* an underscore ('_'), or a dash ('-').
*/
public void uiComponentSetIdRestrictionsTest() throws EETest.Fault {
super.uiComponentSetIdRestrictionsTest();
}
/**
* @testName: uiComponentGetSetValueExpressionTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:567;JSF:JAVADOC:528
* @test_Strategy: Verify the following: - setValueExpression with a
* non-literal ValueExpression results in getValueExpression()
* returning the non-literal ValueExpression -
* setValueExpression with a literal ValueExpression results
* in getValueExpression returning null for that particular
* key and the evaluated value of the ValueExpression is
* stored in the component's attribute map. - Providing a null
* value for the ValueExpression argument of -
* setValueExpression() where a ValueExpression has already
* been stored using the same key, will result in the
* ValueExpression being removed from its internal collection
* - this is verified by calling getValueExpression() and
* ensuring a null return
* @since 1.2
*/
public void uiComponentGetSetValueExpressionTest() throws Fault {
super.uiComponentGetSetValueExpressionTest();
}
/**
* @testName: uiComponentGetSetValueExpressionNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:529
* @test_Strategy: Verify an NPE is thrown if a null value for the 'name'
* argument is passed to getValueExpression().
* @since 1.2
*/
public void uiComponentGetSetValueExpressionNPETest() throws Fault {
super.uiComponentGetSetValueExpressionNPETest();
}
/**
* @testName: uiComponentSetValueExpressionNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:569
* @test_Strategy: Verify an NPE is thrown if a null value for the 'name'
* argument is passed to setValueExpression().
* @since 1.2
*/
public void uiComponentSetValueExpressionNPETest() throws Fault {
super.uiComponentSetValueExpressionNPETest();
}
/**
* @testName: uiComponentSetValueExpressionIAETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:568
* @test_Strategy: Verify an IAE is thrown if a null value for the 'name'
* argument is 'id' or 'parent' setValueExpression().
* @since 1.2
*/
public void uiComponentSetValueExpressionIAETest() throws Fault {
super.uiComponentSetValueExpressionIAETest();
}
/**
* @testName: uiComponentSubscribeToEventTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:570
* @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any
* Exceptions when called correctly.
*
* Test case(s): UIComponent.subscribeToEvent(SystemEvent,
* ComponentSystemEventlistener)
* @since 2.0
*/
public void uiComponentSubscribeToEventTest() throws EETest.Fault {
super.uiComponentSubscribeToEventTest();
}
/**
* @testName: uiComponentSubscribeToEventNPETest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:2547
* @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest
* throws a NullPointerException in the following test cases:
*
* Test cases: UIComponent.subscribeToEvent(null,
* ComponentSystemEventlistener)
* UIComponent.subscribeToEvent(SystemEvent, null)
* @since 2.0
*/
public void uiComponentSubscribeToEventNPETest() throws EETest.Fault {
super.uiComponentSubscribeToEventNPETest();
}
/**
* @testName: uiComponentVisitTreeTest
* @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:575
* @test_Strategy: Verify that we receive false when calling