@Test(expected = IllegalArgumentException.class) public void testUpgradeNodeNotFound() { NodeGroup group = new NodeGroup(new NodeEndpoint("A", "localhost", 2333)); group.upgrade(new NodeId("B")); }
void upgrade(NodeId id) { logger.info("upgrade node {}", id); findMember(id).setMajor(true); }
NodeGroup { void upgrade(NodeId id) { logger.info("upgrade node {}", id); findMember(id).setMajor(true); } }
NodeGroup { void upgrade(NodeId id) { logger.info("upgrade node {}", id); findMember(id).setMajor(true); } NodeGroup(NodeEndpoint endpoint);   NodeGroup(Collection<NodeEndpoint> endpoints, NodeId selfId); }
NodeGroup { void upgrade(NodeId id) { logger.info("upgrade node {}", id); findMember(id).setMajor(true); } NodeGroup(NodeEndpoint endpoint);   NodeGroup(Collection<NodeEndpoint> endpoints, NodeId selfId);  }
NodeGroup { void upgrade(NodeId id) { logger.info("upgrade node {}", id); findMember(id).setMajor(true); } NodeGroup(NodeEndpoint endpoint);   NodeGroup(Collection<NodeEndpoint> endpoints, NodeId selfId);   }