Changeset 540720a9


Ignore:
Timestamp:
Dec 5, 2014 4:18:25 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3dfcb2d
Parents:
f86200e
Message:

unit test fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/test/junit/net/i2p/router/tunnel/BuildMessageTestStandalone.java

    rf86200e r540720a9  
    1616import net.i2p.data.i2np.BuildRequestRecord;
    1717import net.i2p.data.i2np.BuildResponseRecord;
     18import net.i2p.data.i2np.EncryptedBuildRecord;
    1819import net.i2p.data.i2np.TunnelBuildMessage;
    1920import net.i2p.data.i2np.TunnelBuildReplyMessage;
     
    8889            int ourSlot = -1;
    8990
    90             byte reply[] = BuildResponseRecord.create(ctx, 0, req.readReplyKey(), req.readReplyIV(), -1);
     91            EncryptedBuildRecord reply = BuildResponseRecord.create(ctx, 0, req.readReplyKey(), req.readReplyIV(), -1);
    9192            for (int j = 0; j < TunnelBuildMessage.MAX_RECORD_COUNT; j++) {
    9293                if (msg.getRecord(j) == null) {
    9394                    ourSlot = j;
    94                     msg.setRecord(j, new ByteArray(reply));
     95                    msg.setRecord(j, reply);
    9596                    break;
    9697                }
     
    174175            byte iv[] = new byte[BuildRequestRecord.IV_SIZE];
    175176            Arrays.fill(iv, (byte)i); // consistent for repeatability
    176             hop.setReplyIV(new ByteArray(iv));
     177            hop.setReplyIV(iv);
    177178            hop.setReceiveTunnelId(new TunnelId(i+1));
    178179        }
Note: See TracChangeset for help on using the changeset viewer.