package net.i2p.data.i2cp;
/*
 * free (adj.): unencumbered; not under the control of others
 * Written by jrandom in 2003 and released into the public domain 
 * with no warranty of any kind, either expressed or implied.  
 * It probably won't make your computer catch on fire, or eat 
 * your children, but it might.  Use at your own risk.
 *
 */

import net.i2p.data.DataFormatException;
import net.i2p.data.PrivateKey;
import net.i2p.data.PrivateKeyTest;
import net.i2p.data.SigningPrivateKey;
import net.i2p.data.SigningPrivateKeyTest;
import net.i2p.data.LeaseSet;
import net.i2p.data.LeaseSetTest;

/**
 * Test harness for loading / storing CreateLeaseSetMessage objects
 *
 * @author jrandom
 */
public class CreateLeaseSetMessageTest extends I2CPTstBase {
    public I2CPMessageImpl createDataStructure() throws DataFormatException {
        CreateLeaseSetMessage msg = new CreateLeaseSetMessage();
    	msg.setPrivateKey((PrivateKey)(new PrivateKeyTest()).createDataStructure());
    	msg.setSigningPrivateKey((SigningPrivateKey)(new SigningPrivateKeyTest()).createDataStructure());
    	msg.setLeaseSet((LeaseSet)(new LeaseSetTest()).createDataStructure());
        msg.setSessionId((SessionId)(new SessionIdTest()).createDataStructure());
        return msg; 
    }
    public I2CPMessageImpl createStructureToRead() { return new CreateLeaseSetMessage(); }
}
