@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(); }
@Override public void tearDown() { try { super.tearDown(); blockJobs = false; Utils.finishMockSleep(); if (peerGroup.isRunning()) peerGroup.stopAsync(); } catch (Exception e) { throw new RuntimeException(e); } }
@Override @Before public void setUp() throws Exception { super.setUp(); memoryPool = new MemoryPool(); VersionMessage ver = new VersionMessage(unitTestParams, 100); InetSocketAddress address = new InetSocketAddress("127.0.0.1", 4000); peer = new Peer(unitTestParams, ver, new PeerAddress(address), blockChain, memoryPool); peer.addWallet(wallet); }
@After public void tearDown() throws Exception { super.tearDown(); assertFalse(fail.get()); }