From 16a3102ca4ca4bc5369423e18b548cab3498603e Mon Sep 17 00:00:00 2001 From: Vladimir Eliezer Tokarev Date: Thu, 25 Feb 2016 21:56:46 -0800 Subject: [PATCH] Replaced part of the files according to Arbel Peled CR and remove unnessesry files --- bulletin-board-server/meerkat | Bin 21504 -> 23552 bytes .../Registry}/AccurateTimestamp.java | 2 +- .../BooleanCallBack.java} | 9 +++++---- .../Registry}/CollectionMessagesUtils.java | 4 ++-- .../Registry}/RegistryTags.java | 2 +- .../{ => Registry}/RelevantDataCallBack.java | 13 ++++++++----- .../src/main/java/meerkat/SimpleRegistry.java | 10 ++++------ .../java/meerkat/VoterRegistryMessage.java | 4 ++-- .../src/main/java/util/VoterAdded.java | 18 ------------------ .../src/test/java/SimpleRegistryTest.java | 8 ++++---- 10 files changed, 27 insertions(+), 43 deletions(-) rename voter-registry/src/main/java/{util => meerkat/Registry}/AccurateTimestamp.java (97%) rename voter-registry/src/main/java/meerkat/{BooleanHandler.java => Registry/BooleanCallBack.java} (81%) rename voter-registry/src/main/java/{util => meerkat/Registry}/CollectionMessagesUtils.java (98%) rename voter-registry/src/main/java/{util => meerkat/Registry}/RegistryTags.java (95%) rename voter-registry/src/main/java/meerkat/{ => Registry}/RelevantDataCallBack.java (87%) delete mode 100644 voter-registry/src/main/java/util/VoterAdded.java diff --git a/bulletin-board-server/meerkat b/bulletin-board-server/meerkat index ecd7fd376b92098b84fda44b3ab952ce2f713bcb..9709e188fa91b9f4c25f0843276851b6109a34b8 100644 GIT binary patch delta 3420 zcma)93se(V8lHQvLy*-PLP!D#jsYK3hvRXtc6hyYaErdVIH9+bvZq$L^u4>)N{Au6T53CVEIYME0CyzU1b+ z|NZ9v-~Io|(p_L_2UwqipTRIpyn)CEXAaD3L;OML4l{s>Q4jhF-A8w5MQmAc?x1xD zXGRl5^nG4}T7orWC>=dcB=g>}G&?E^i?2@ZfSP$xWu{S3bX zg-o0Ze+DuF0$YD$&a@ea@6QDh2LjU$J&ycXB_Tbd*SB~Z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+txpbO$~43ic+TnqOB3SOdRa`BFFGu<))~8fcR0W!6jHq7MJ!M4SHH!8pNa;z_AEZQ2Tn>FNUP{ld-1P$c zAcbHdh8#>YDrCB~8u|kQ30vGOk^zg`M0p7uiFN-WX~7=zexq?nnC>$_2lN7qh@lJ+AwB$Da%(J-)8L6|^ok_l$Y?ZcELzmo7$DH-G=n z2LXYYQziaCRbA<Xct0y@AJ~#B^ zHSwm`@1C;#aPsqkMX^bR@G^#`!OKiaKY=B$O4y30ALxGoSMj2k6Z%|PWTEAXP(UW; gTFXHH9=Ooa9ogGjq8B8twa^EKir8Kgr37jA}!ml@u9rj}@GmhMH@HI-74 z`_3peTW6ml1gv<0ve3nEN?LQ`+ z-2919qK^2t_L4KCJN;YOAar|Ands`ieH{cn4hIcyT4;*jN$7B8nPu5t)XmuWfGv5A>S{Jfq7j{F;9tfFw>~5;J&% zZ~PNBMo__3$){rSs1T7m>9-O#cdRcA=L#cf54X!&IY3!?79Nl%yRYj5X_sUsQ { - public boolean Data; - - @Override - public void HandleResult(Boolean result) { - Data = result; - } -} - - diff --git a/voter-registry/src/test/java/SimpleRegistryTest.java b/voter-registry/src/test/java/SimpleRegistryTest.java index e2fa751..fb1a251 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; import meerkat.protobuf.Voting; -import util.CollectionMessagesUtils; -import util.RegistryTags; +import meerkat.Registry.CollectionMessagesUtils; +import meerkat.Registry.RegistryTags; import java.io.InputStream; import java.math.BigInteger; @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.Semaphore; -import static util.CollectionMessagesUtils.ConvertToVoterRegistryMessages; +import static meerkat.Registry.CollectionMessagesUtils.ConvertToVoterRegistryMessages; /** * TODO: add logs prints for the tests to be clear what they are @@ -29,7 +29,7 @@ import static util.CollectionMessagesUtils.ConvertToVoterRegistryMessages; /** * Created by Vladimir Eliezer Tokarev on 1/16/2016. - * Tests the Simple Registry contents + * Tests the Simple meerkat.Registry contents * NOTE: for most of this tests to pass there should run BulletinBoardServer * that should be reachable on BULLETIN_BOARD_SERVER_ADDRESS */