org.ccnx.ccn.test.protocol.ContentNameTest Class Reference

Test basic ContentName operation. More...

List of all members.

Public Member Functions

void setUp () throws Exception
void tearDown () throws Exception
void testContentNameString ()
void parseWithException (String input)
void testContentNameStringException () throws MalformedContentNameStringException
void testContentNameStringArray () throws MalformedContentNameStringException
void testEncoding ()
void testContentNameByteArrayArray () throws MalformedContentNameStringException
void testMultilevelString () throws MalformedContentNameStringException
void testInvalidContentNameByteArrayArray () throws MalformedContentNameStringException
void testParent ()
void testEncodeOutputStream ()
void testDecodeInputStream ()
void testEncodingDecoding ()
void testRelations () throws MalformedContentNameStringException
 Test relations like isPrefixOf().
void testContentNameParsePerformance ()
void testContentNamePrintPerformance ()

Static Public Member Functions

static void setUpBeforeClass () throws Exception
static void tearDownAfterClass () throws Exception

Public Attributes

String baseName = "test"
String subName1 = "briggs"
String subName2 = "smetters"
String document1 = "test.txt"
String document2 = "test2.txt"
byte[] document3
byte[] invalid
byte[][] invalids
String escapedSubName1 = "%62%72%69%67%67%73"
String withScheme = "ccnx:/test/briggs/test.txt"
String dotSlash = "ccnx:/.../.%2e./...././.....///?..."
String dotSlashResolved = "ccnx:/.../.../..../....."
String withQuery = "/abc/def/q?foo=bar"
String withFragment = "/abc/def/ghi#rst"
String withQueryAndFragment = "/abc/def/qr?st=bat#notch"
String veryEscapedName = "ccnx:/test/%C1.%77%00A%8C%B4B%8D%0A%AC%8E%14%8C%07%88%E4%E2%3Dn/%23%00%19/%C1.%76%00t%DF%F63/%FE%23/%C1.M.K%00%1E%90%EAh%E9%FB%AE%A3%9E%17F%20%CF%AB%A0%29%E9%DE%FAZ%DCA%FBZ%F5%DD%F5A%D2%D7%9F%D1/%FD%04%CB%F5qR%7B/%00"

Detailed Description

Test basic ContentName operation.


Member Function Documentation

void org.ccnx.ccn.test.protocol.ContentNameTest.testRelations (  )  throws MalformedContentNameStringException

Test relations like isPrefixOf().

Exceptions:
MalformedContentNameStringException 

Member Data Documentation

byte [] org.ccnx.ccn.test.protocol.ContentNameTest.document3
Initial value:
 new byte[]{0x01, 0x02, 0x03, 0x04,
                                0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c,
                                0x0d, 0x0e, 0x0f, 0x1f, 0x1b, 0x1c, 0x1d, 0x1e,
                                0x1f, 0x2e, 0x3c, 0x4a, 0x5c, 0x6d, 0x7e, 0xf}
byte [] org.ccnx.ccn.test.protocol.ContentNameTest.invalid
Initial value:
 new byte[]{0x01, 0x00, 0x00, 
                                (byte) 0x80, (byte) 0xbc, 
                                (byte) 0xc0, (byte) 0x8a, 
                                (byte) 0xf5, (byte) 0xf9, (byte) 0xfc, 
                            (byte) 0xfe, (byte) 0xff}
byte [][] org.ccnx.ccn.test.protocol.ContentNameTest.invalids
Initial value:
 new byte[][]{ {0x01, 0x00, 0x00}, 
                        {(byte) 0x80, (byte) 0xbc}, 
                        {(byte) 0xc0, (byte) 0x8a}, 
                        {(byte) 0xf5, (byte) 0xf9, (byte) 0xfc}, 
                    {(byte) 0xfe, (byte) 0xff}, 
                        {(byte) 0xe0, (byte) 0x8e, (byte) 0xb7},
                        }

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:55 2011 for Content-Centric Networking in Java by  doxygen 1.6.3