@Test public void testSslQuorumProperty() { QuorumPeer qpMock = mock(QuorumPeer.class); QuorumBean qb = new QuorumBean(qpMock); when(qpMock.isSslQuorum()).thenReturn(true); assertThat("isSslQuorum property should return value of peer.isSslQuorum()", qb.isSslQuorum(), equalTo(true)); when(qpMock.isSslQuorum()).thenReturn(false); assertThat("isSslQuorum property should return value of peer.isSslQuorum()", qb.isSslQuorum(), equalTo(false)); }
@Override public boolean isSslQuorum() { return peer.isSslQuorum(); }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public boolean isSslQuorum() { return peer.isSslQuorum(); } }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public boolean isSslQuorum() { return peer.isSslQuorum(); } QuorumBean(QuorumPeer peer); }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public boolean isSslQuorum() { return peer.isSslQuorum(); } QuorumBean(QuorumPeer peer); @Override String getName(); @Override boolean isHidden(); @Override int getQuorumSize(); @Override boolean isSslQuorum(); @Override boolean isPortUnification(); }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public boolean isSslQuorum() { return peer.isSslQuorum(); } QuorumBean(QuorumPeer peer); @Override String getName(); @Override boolean isHidden(); @Override int getQuorumSize(); @Override boolean isSslQuorum(); @Override boolean isPortUnification();  }