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

This test checks if we can actually get the latest version using the getLatestVersion method in VersioningProfile. More...

List of all members.

Public Member Functions

void setUp () throws Exception
void tearDown ()
void getLatestVersion () throws InterruptedException, Error
 Test to check if the getLatestVersion method in VersioningProfile gets the latest version with a ccnd involved.

Static Public Attributes

static ContentObject lastVersionPublished = null
static ContentName pingResponder = null
static ArrayList< ContentObjectresponseObjects = null
static ContentObject failVerify = null
static ContentObject failVerify1 = null
static ContentObject failVerify2 = null
static ContentObject failVerify4 = null

Package Attributes

ContentName baseName
Responder responder

Static Package Attributes

static final long WAIT_TIME = 500
static CCNHandle getHandle
static CCNHandle responderHandle

Classes

class  Responder
 Runnable class for the single ContentObject responder. More...
class  TestVerifier


Detailed Description

This test checks if we can actually get the latest version using the getLatestVersion method in VersioningProfile.

The current implementation of getLatestVersion does not loop to try and find the latest version. It reports the latest available with a single interest. The second part of this test is commented out due to this limitation. This will be activated when an alternate to getLatestVersion is supplied in the implementation or getLatestVersion is modified. getLatestVersion currently does not loop looking for newer version to avoid suffering timeouts when there is not an newer version available.


Member Function Documentation

void org.ccnx.ccn.test.protocol.LatestVersionTest.setUp (  )  throws Exception

Exceptions:
java.lang.Exception 

void org.ccnx.ccn.test.protocol.LatestVersionTest.getLatestVersion (  )  throws InterruptedException, Error

Test to check if the getLatestVersion method in VersioningProfile gets the latest version with a ccnd involved.

Exceptions:
Error 
InterruptedException 


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:45:09 2012 for Content-Centric Networking in Java by  doxygen 1.5.6