Part of older test infrastructure. More...
Public Member Functions | |
void | getResults (ContentName baseName, int count, CCNHandle handle) throws IOException, InvalidKeyException, SignatureException, InterruptedException |
Expects this method to call checkGetResults on each set of content returned. | |
void | doPuts (ContentName baseName, int count, CCNHandle handle) throws InterruptedException, SignatureException, MalformedContentNameStringException, IOException, InvalidKeyException |
Responsible for calling checkPutResults on each put. | |
void | testGetServPut () throws Throwable |
void | testGetPutServ () throws Throwable |
Static Public Member Functions | |
static void | setUpBeforeClass () throws Exception |
static void | tearDownAfterClass () throws Exception |
Static Public Attributes | |
static final String | TEST_LONG_CONTENT = TEST_CONTENT + TEST_MEDIUM_CONTENT + TEST_LOREM_IPSUM_CONTENT |
Protected Attributes | |
Semaphore | sema = new Semaphore(0) |
Static Protected Attributes | |
static final String | fileName = "medium_file.txt" |
static final int | CHUNK_SIZE = 512 |
static final String | TEST_CONTENT |
static final String | TEST_MEDIUM_CONTENT |
static final String | TEST_LOREM_IPSUM_CONTENT |
Part of older test infrastructure.
void org.ccnx.ccn.test.BlockReadWriteTest.doPuts | ( | ContentName | baseName, | |
int | count, | |||
CCNHandle | handle | |||
) | throws InterruptedException, SignatureException, MalformedContentNameStringException, IOException, InvalidKeyException |
Responsible for calling checkPutResults on each put.
(Could return them all in a batch then check...)
InterruptedException | ||
IOException | ||
MalformedContentNameStringException | ||
SignatureException | ||
InvalidKeyException |
Reimplemented from org.ccnx.ccn.test.LibraryTestBase.
Reimplemented in org.ccnx.ccn.test.io.StreamTest.
void org.ccnx.ccn.test.BlockReadWriteTest.getResults | ( | ContentName | baseName, | |
int | count, | |||
CCNHandle | handle | |||
) | throws IOException, InvalidKeyException, SignatureException, InterruptedException |
Expects this method to call checkGetResults on each set of content returned.
..
baseName | ||
count | ||
handle |
InterruptedException | ||
IOException | ||
SignatureException | ||
InvalidKeyException | ||
InterruptedException |
Reimplemented from org.ccnx.ccn.test.LibraryTestBase.
Reimplemented in org.ccnx.ccn.test.io.StreamTest.
final String org.ccnx.ccn.test.BlockReadWriteTest.TEST_CONTENT [static, protected] |
"Four score and seven years ago, our fathers brought forth upon this \n" + "continent a new nation: conceived in liberty, and dedicated to the \n" + "proposition that all men are created equal.\n" + "\n" + "Now we are engaged in a great civil war. . .testing whether that \n" + "nation, or any nation so conceived and so dedicated. . . can long \n" + "endure. We are met on a great battlefield of that war. \n" + "\n" + "We have come to dedicate a portion of that field as a final resting \n" + "place for those who here gave their lives that that nation might \n" + "live. It is altogether fitting and proper that we should do this. \n" + "\n" + "But, in a larger sense, we cannot dedicate. . .we cannot \n" + "consecrate. . . we cannot hallow this ground. The brave men, living \n" + "and dead, who struggled here have consecrated it, far above our poor \n" + "power to add or detract. The world will little note, nor long \n" + "remember, what we say here, but it can never forget what they did \n" + "here. \n" + "\n" + "It is for us the living, rather, to be dedicated here to the \n" + "unfinished work which they who fought here have thus far so nobly \n" + "advanced. It is rather for us to be here dedicated to the great task \n" + "remaining before us. . .that from these honored dead we take increased \n" + "devotion to that cause for which they gave the last full measure of \n" + "devotion. . . that we here highly resolve that these dead shall not \n" + "have died in vain. . . that this nation, under God, shall have a new \n" + "birth of freedom. . . and that government of the people. . .by the \n" + "people. . .for the people. . . shall not perish from the earth. \n" + "\n"