From 9c52eff109eec986def126755c5c18d7de8fc8e9 Mon Sep 17 00:00:00 2001 From: Vladimir Eliezer Tokarev Date: Fri, 4 Mar 2016 06:05:06 -0800 Subject: [PATCH] Updated the VoterRegistry.proto file according to the new timestamp of the unsingedBulletinBoardMessage. --- .../src/test/java/SimpleRegistryTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/voter-registry/src/test/java/SimpleRegistryTest.java b/voter-registry/src/test/java/SimpleRegistryTest.java index 88389b8..7b090bc 100644 --- a/voter-registry/src/test/java/SimpleRegistryTest.java +++ b/voter-registry/src/test/java/SimpleRegistryTest.java @@ -9,8 +9,8 @@ import meerkat.bulletinboard.ThreadedBulletinBoardClient; import meerkat.crypto.concrete.ECDSASignature; import meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage; import meerkat.protobuf.BulletinBoardAPI.MessageFilterList; +import meerkat.protobuf.VoterRegistry; import meerkat.protobuf.VoterRegistry.GroupID; -import meerkat.protobuf.VoterRegistry.VoterGroup; import meerkat.protobuf.VoterRegistry.VoterID; import meerkat.protobuf.VoterRegistry.VoterInfo; import meerkat.protobuf.Voting; @@ -227,9 +227,9 @@ public class SimpleRegistryTest extends TestCase { String voterId = new BigInteger(130, random).toString(32); String groupId = new BigInteger(130, random).toString(32); - VoterGroup voterInfo = VoterGroup.newBuilder() - .setVoterId(VoterID.newBuilder().setId(voterId)) - .setGroupId(GroupID.newBuilder().setId(groupId)).build(); + VoterRegistry.VoterRegistryMessage voterInfo = VoterRegistry.VoterRegistryMessage.newBuilder() + .setVoterID(VoterID.newBuilder().setId(voterId)) + .addGroupID(GroupID.newBuilder().setId(groupId)).build(); SimpleRegistry registry = new SimpleRegistry(signer, bulletinBoardClient, certStream); registry.AddToGroups(voterInfo, handler); @@ -260,9 +260,9 @@ public class SimpleRegistryTest extends TestCase { String voterId = new BigInteger(130, random).toString(32); String groupId = new BigInteger(130, random).toString(32); - VoterGroup voterInfo = VoterGroup.newBuilder() - .setVoterId(VoterID.newBuilder().setId(voterId)) - .setGroupId(GroupID.newBuilder().setId(groupId)).build(); + VoterRegistry.VoterRegistryMessage voterInfo = VoterRegistry.VoterRegistryMessage.newBuilder() + .setVoterID(VoterID.newBuilder().setId(voterId)) + .addGroupID(GroupID.newBuilder().setId(groupId)).build(); this.certStream = getClass().getResourceAsStream(CERT1_PEM_EXAMPLE);