org.ccnx.ccn.test.endtoend.BaseLibrarySource Class Reference

Part of the end to end test infrastructure. More...

Inheritance diagram for org.ccnx.ccn.test.endtoend.BaseLibrarySource:

org.ccnx.ccn.test.endtoend.EndToEndTestSource

List of all members.

Public Member Functions

void checkPutResults (ContentName putResult)
 Subclassible object processing operations, to make it possible to easily implement tests based on this one.
byte[] getRandomContent (int item)
 getRandomString returns a random string (all digits) of random length so that different packets will have varying sizes of content as a test of buffer handling.
int getRandomFromSet (int length, boolean reset)

Static Public Member Functions

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

Static Public Attributes

static int count = 43

Static Protected Attributes

static CCNHandle handle = null
static Throwable error = null
static Random rand

Package Attributes

ContentName name = null
int next = 0
Semaphore sema = new Semaphore(0)


Detailed Description

Part of the end to end test infrastructure.

NOTE: This test requires ccnd to be running and complementary sink process


Member Function Documentation

void org.ccnx.ccn.test.endtoend.BaseLibrarySource.checkPutResults ( ContentName  putResult  ) 

Subclassible object processing operations, to make it possible to easily implement tests based on this one.

Author:
smetters

byte [] org.ccnx.ccn.test.endtoend.BaseLibrarySource.getRandomContent ( int  item  ) 

getRandomString returns a random string (all digits) of random length so that different packets will have varying sizes of content as a test of buffer handling.

We try to carefully construct content that will do maximum damage if interpreted as the start of a message (i.e. if you read this as 'leftover' data in a buffer previously used for a larger packet, because you read past the end of what you are supposed to be handling)


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