@Test public void testGetNameProperty() { QuorumPeer qpMock = mock(QuorumPeer.class); when(qpMock.getId()).thenReturn(1L); QuorumBean qb = new QuorumBean(qpMock); assertThat("getName property should return Bean name in the right format", qb.getName(), equalTo("ReplicatedServer_id1")); }
@Override public String getName() { return name; }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public String getName() { return name; } }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public String getName() { return name; } QuorumBean(QuorumPeer peer); }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public String getName() { return name; } QuorumBean(QuorumPeer peer); @Override String getName(); @Override boolean isHidden(); @Override int getQuorumSize(); @Override boolean isSslQuorum(); @Override boolean isPortUnification(); }
QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public String getName() { return name; } QuorumBean(QuorumPeer peer); @Override String getName(); @Override boolean isHidden(); @Override int getQuorumSize(); @Override boolean isSslQuorum(); @Override boolean isPortUnification();  }