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) |
NOTE: This test requires ccnd to be running and complementary sink process
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.
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)