org.ccnx.ccn.test.impl.encoding.XMLEncodableTester Class Reference

Helper class for writing tests for classes implementing XMLEncodable. More...

List of all members.

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)


Detailed Description

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.


Member Function Documentation

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.

Parameters:
label 
toEncode 
decodeTarget 


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:45:08 2012 for Content-Centric Networking in Java by  doxygen 1.5.6