Router tests: Remove or supporess deprecation warnings

Remove cast warnings
Fix RouterAddress.setExpiration() to match javadoc, used only by tests
This commit is contained in:
zzz
2017-12-02 13:56:13 +00:00
parent 2becaaa593
commit e6f17ec1ab
15 changed files with 38 additions and 53 deletions

View File

@ -22,8 +22,8 @@ import net.i2p.data.TunnelId;
public class DeliveryInstructionsTest extends StructureTest {
public DataStructure createDataStructure() throws DataFormatException {
DeliveryInstructions instructions = new DeliveryInstructions();
instructions.setDelayRequested(true);
instructions.setDelaySeconds(42);
//instructions.setDelayRequested(true);
//instructions.setDelaySeconds(42);
instructions.setDeliveryMode(DeliveryInstructions.DELIVERY_MODE_TUNNEL);
// encryption key read/write disabled
//instructions.setEncrypted(true);