Class DwrMarshallingTesterImpl
java.lang.Object
ch.tocco.nice2.netui.impl.dwr.test.DwrMarshallingTesterImpl
- All Implemented Interfaces:
DwrMarshallingTester
Tests marshalling back an forth of objects and data structures.
Including simple types, collections/maps and arrays, and objects with our custom marshallers.
To run navigate your browser to http://localhost:8080/nice2/dwrMarshallingTester.html
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
error()
TypedValue
<?> Number[]
returnNumberMap
(boolean linked) returnStringList
(boolean simple) testBigDecimal
(BigDecimal one, BigDecimal two) boolean
testBooleanPrimitive
(boolean b) String[]
testEmptyArray
(String[] arr) testInteger
(int i, Integer j) Number[]
testNumberArray
(Number[] numbers) TypedValue
<?> testTypedValue
(TypedValue<?> value) TypedValue<?>[]
testTypedValueArray
(TypedValue<?>[] value) Map
<String, TypedValue<?>> testTypedValueMap
(Map<String, TypedValue<?>> value) transfer
(DwrTransferrable data) int
transferArray
(DwrTransferrable[] data)
-
Constructor Details
-
DwrMarshallingTesterImpl
-
-
Method Details
-
sayHello
- Specified by:
sayHello
in interfaceDwrMarshallingTester
-
testInteger
- Specified by:
testInteger
in interfaceDwrMarshallingTester
-
testBigDecimal
- Specified by:
testBigDecimal
in interfaceDwrMarshallingTester
-
testShort
- Specified by:
testShort
in interfaceDwrMarshallingTester
-
testBoolean
- Specified by:
testBoolean
in interfaceDwrMarshallingTester
-
testBooleanPrimitive
public boolean testBooleanPrimitive(boolean b) - Specified by:
testBooleanPrimitive
in interfaceDwrMarshallingTester
-
transfer
- Specified by:
transfer
in interfaceDwrMarshallingTester
-
transferArray
- Specified by:
transferArray
in interfaceDwrMarshallingTester
-
testDate
- Specified by:
testDate
in interfaceDwrMarshallingTester
-
testEnum
- Specified by:
testEnum
in interfaceDwrMarshallingTester
-
getTypedValue
- Specified by:
getTypedValue
in interfaceDwrMarshallingTester
-
testTypedValue
- Specified by:
testTypedValue
in interfaceDwrMarshallingTester
-
testTypedValueArray
- Specified by:
testTypedValueArray
in interfaceDwrMarshallingTester
-
testTypedValueMap
- Specified by:
testTypedValueMap
in interfaceDwrMarshallingTester
-
error
- Specified by:
error
in interfaceDwrMarshallingTester
- Throws:
Exception
-
returnSpecializedObject
- Specified by:
returnSpecializedObject
in interfaceDwrMarshallingTester
-
returnNumberArray
- Specified by:
returnNumberArray
in interfaceDwrMarshallingTester
-
testNumberArray
- Specified by:
testNumberArray
in interfaceDwrMarshallingTester
-
testEmptyArray
- Specified by:
testEmptyArray
in interfaceDwrMarshallingTester
-
returnStringList
- Specified by:
returnStringList
in interfaceDwrMarshallingTester
-
returnEmptyList
- Specified by:
returnEmptyList
in interfaceDwrMarshallingTester
-
returnEmptyNonStringList
- Specified by:
returnEmptyNonStringList
in interfaceDwrMarshallingTester
-
returnNumberMap
- Specified by:
returnNumberMap
in interfaceDwrMarshallingTester
-
returnEmptyMap
- Specified by:
returnEmptyMap
in interfaceDwrMarshallingTester
-