Test struts-bean:write Tag
Test 1 -- Scalar Variable Lookups
| Data Type |
Correct Value |
Test Result |
| boolean |
true
|
true
|
| double |
321.0
|
321.0
|
| float |
123.0
|
123.0
|
| int |
123
|
123
|
| long |
321
|
321
|
| short |
987
|
987
|
| String |
This is a string
|
This is a string
|
Test 2 -- Scalar Property Lookups
| Data Type |
Correct Value |
Test Result |
| boolean |
true
|
true
|
| double |
321.0
|
321.0
|
| float |
123.0
|
123.0
|
| int |
123
|
123
|
| long |
321
|
321
|
| short |
987
|
987
|
| String |
This is a string
|
This is a string
|
Test 3 - Integer Array And Indexed Lookups
| Correct Value |
Array Result |
Indexed Result |
|
0
|
0
|
0
|
|
10
|
10
|
10
|
|
20
|
20
|
20
|
|
30
|
30
|
30
|
|
40
|
40
|
40
|
Test 4 - String Array And Indexed Lookups
| Correct Value |
Array Result |
Indexed Result |
|
String 0
|
String 0
|
String 0
|
|
String 1
|
String 1
|
String 1
|
|
String 2
|
String 2
|
String 2
|
|
String 3
|
String 3
|
String 3
|
|
String 4
|
String 4
|
String 4
|
Test 5 -- Nested Scalar Property Lookups
| Data Type |
Correct Value |
Test Result |
| boolean |
true
|
true
|
| double |
321.0
|
321.0
|
| float |
123.0
|
123.0
|
| int |
123
|
123
|
| long |
321
|
321
|
| short |
987
|
987
|
| String |
This is a string
|
This is a string
|
Test 6 - Nested Integer Array And Indexed Lookups
| Correct Value |
Array Result |
Indexed Result |
|
0
|
0
|
0
|
|
10
|
10
|
10
|
|
20
|
20
|
20
|
|
30
|
30
|
30
|
|
40
|
40
|
40
|