Helper class for writing tests for classes implementing XMLEncodable. More...
Static Public Member Functions | |
static void | encodeDecodeTest (String label, XMLEncodable toEncode, XMLEncodable decodeTargetText, XMLEncodable decodeTargetBinary) |
Test both binary and text encodings. | |
static void | encodeDecodeByteArrayTest (String label, XMLEncodable toEncode, XMLEncodable decodeTargetText, XMLEncodable decodeTargetBinary) |
static void | encodeDecodeTest (String codec, String label, XMLEncodable toEncode, XMLEncodable decodeTarget) |
static void | encodeDecodeByteArrayTest (String codec, String label, XMLEncodable toEncode, XMLEncodable decodeTarget) |
static void | handleException (Exception ex) |
Helper class for writing tests for classes implementing XMLEncodable.
Provides a basic test harness for testing encoding and decoding under both binary and text codecs; would be easy to make it test all registered codecs.
static void org.ccnx.ccn.test.impl.encoding.XMLEncodableTester.encodeDecodeTest | ( | String | label, | |
XMLEncodable | toEncode, | |||
XMLEncodable | decodeTargetText, | |||
XMLEncodable | decodeTargetBinary | |||
) | [static] |
Test both binary and text encodings.
label | ||
toEncode | ||
decodeTarget |