use of org.hyperledger.besu.ethereum.p2p.discovery.PeerDiscoveryTestHelper.AgentBuilder in project besu by hyperledger.
the class PeerDiscoveryAgentTest method shouldBeActiveWhenConfigIsTrue.
@Test
public void shouldBeActiveWhenConfigIsTrue() {
final AgentBuilder agentBuilder = helper.agentBuilder().active(true);
final MockPeerDiscoveryAgent agent = helper.startDiscoveryAgent(agentBuilder);
assertThat(agent.isActive()).isTrue();
}
use of org.hyperledger.besu.ethereum.p2p.discovery.PeerDiscoveryTestHelper.AgentBuilder in project besu by hyperledger.
the class PeerDiscoveryAgentTest method shouldNotBeActiveWhenConfigIsFalse.
@Test
public void shouldNotBeActiveWhenConfigIsFalse() {
final AgentBuilder agentBuilder = helper.agentBuilder().active(false);
final MockPeerDiscoveryAgent agent = helper.startDiscoveryAgent(agentBuilder);
assertThat(agent.isActive()).isFalse();
}
Aggregations