Search in sources :

Example 1 with RouterInfoTest

use of net.i2p.data.router.RouterInfoTest in project i2p.i2p by i2p.

the class DatabaseStoreMessageTest method createDataStructure.

public DataStructure createDataStructure() throws DataFormatException {
    DatabaseStoreMessage msg = new DatabaseStoreMessage(I2PAppContext.getGlobalContext());
    RouterInfo info = (RouterInfo) new RouterInfoTest().createDataStructure();
    msg.setMessageExpiration(Clock.getInstance().now());
    msg.setUniqueId(666);
    msg.setEntry(info);
    return msg;
}
Also used : RouterInfo(net.i2p.data.router.RouterInfo) RouterInfoTest(net.i2p.data.router.RouterInfoTest)

Aggregations

RouterInfo (net.i2p.data.router.RouterInfo)1 RouterInfoTest (net.i2p.data.router.RouterInfoTest)1