예제 #1
0
  @Override
  public void setUp(BlockStore blockStore) throws Exception {
    super.setUp(blockStore);

    remoteVersionMessage = new VersionMessage(unitTestParams, 1);
    remoteVersionMessage.localServices = VersionMessage.NODE_NETWORK;
    remoteVersionMessage.clientVersion = NotFoundMessage.MIN_PROTOCOL_VERSION;
    blockJobs = false;
    initPeerGroup();
  }
예제 #2
0
 @Override
 public void tearDown() {
   try {
     super.tearDown();
     blockJobs = false;
     Utils.finishMockSleep();
     if (peerGroup.isRunning()) peerGroup.stopAsync();
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }