Public Member Functions | |
void | testCCNVersionedInputStreamContentNameLongPublisherKeyIDCCNLibrary () throws Exception |
void | testCCNVersionedInputStreamContentNamePublisherKeyIDCCNLibrary () throws Exception |
void | testCCNVersionedInputStreamContentName () throws Exception |
void | testCCNVersionedInputStreamContentNameCCNLibrary () throws Exception |
void | testCCNVersionedInputStreamContentNameInt () throws Exception |
void | testCCNVersionedInputStreamContentObjectCCNLibrary () throws Exception |
void | testReadByteArray () throws Exception |
void | testReadProblematicLengths () throws Exception |
Static Public Member Functions | |
static void | setUpBeforeClass () throws Exception |
static void | cleanupAfterClass () |
static byte[] | writeFile (Flosser flosser, ContentName completeName, int fileLength, Random randBytes) throws IOException, NoSuchAlgorithmException |
static byte[] | readFile (InputStream inputStream, int fileLength) throws IOException |
Protected Member Functions | |
void | testArgumentRunner (CCNVersionedInputStream vfirst, CCNVersionedInputStream vlatest) throws Exception |
Static Package Attributes | |
static ContentName | defaultStreamName |
static ContentName | firstVersionName |
static int | firstVersionLength |
static int | firstVersionMaxSegment |
static byte[] | firstVersionDigest |
static ContentName | middleVersionName |
static int | middleVersionLength |
static int | middleVersionMaxSegment |
static byte[] | middleVersionDigest |
static ContentName | latestVersionName |
static int | latestVersionLength |
static int | latestVersionMaxSegment |
static byte[] | latestVersionDigest |
static CCNHandle | outputHandle |
static CCNHandle | inputHandle |
static CCNHandle | inputHandle2 |
static CCNReader | reader |
static final int | MAX_FILE_SIZE = 1024*1024 |
static final int | BUF_SIZE = 4096 |
static final int | MERKLE_TREE_LENGTH = SegmentationProfile.DEFAULT_BLOCKSIZE * CCNOutputStream.BLOCK_BUF_COUNT |
static int[] | problematicLengths |
static byte[][] | problematicDigests = new byte[problematicLengths.length][] |
static ContentName[] | problematicNames = new ContentName[problematicLengths.length] |
static CCNTestHelper | testHelper = new CCNTestHelper(CCNVersionedInputStreamTest.class) |
Handle naming for the test. |
static byte [] org.ccnx.ccn.test.io.CCNVersionedInputStreamTest.writeFile | ( | Flosser | flosser, | |
ContentName | completeName, | |||
int | fileLength, | |||
Random | randBytes | |||
) | throws IOException, NoSuchAlgorithmException [static] |
completeName | ||
fileLength | ||
randBytes |
IOException | ||
NoSuchAlgorithmException |
int [] org.ccnx.ccn.test.io.CCNVersionedInputStreamTest.problematicLengths [static, package] |
Initial value:
{ SegmentationProfile.DEFAULT_BLOCKSIZE, SegmentationProfile.DEFAULT_BLOCKSIZE/2, SegmentationProfile.DEFAULT_BLOCKSIZE*2, ((int)(SegmentationProfile.DEFAULT_BLOCKSIZE*1.5)), ((int)(SegmentationProfile.DEFAULT_BLOCKSIZE*2.5)), MERKLE_TREE_LENGTH + SegmentationProfile.DEFAULT_BLOCKSIZE, MERKLE_TREE_LENGTH + SegmentationProfile.DEFAULT_BLOCKSIZE/2, MERKLE_TREE_LENGTH + SegmentationProfile.DEFAULT_BLOCKSIZE*2, MERKLE_TREE_LENGTH + ((int)(SegmentationProfile.DEFAULT_BLOCKSIZE*1.5)), MERKLE_TREE_LENGTH + ((int)(SegmentationProfile.DEFAULT_BLOCKSIZE*2.5))}