@Test public void testVnodeRepairStateRepairedAtIsSet() { LongTokenRange range = new LongTokenRange(1, 2); Host host1 = mock(Host.class); Host host2 = mock(Host.class); Host host3 = mock(Host.class); long repairedAt = 1234L; VnodeRepairState vnodeRepairState = new VnodeRepairState(range, ImmutableSet.of(host1, host2, host3), repairedAt); assertThat(vnodeRepairState.lastRepairedAt()).isEqualTo(repairedAt); }
public long lastRepairedAt() { return myLastRepairedAt; }
VnodeRepairState { public long lastRepairedAt() { return myLastRepairedAt; } }
VnodeRepairState { public long lastRepairedAt() { return myLastRepairedAt; } VnodeRepairState(LongTokenRange tokenRange, ImmutableSet<Host> replicas, long lastRepairedAt); }
VnodeRepairState { public long lastRepairedAt() { return myLastRepairedAt; } VnodeRepairState(LongTokenRange tokenRange, ImmutableSet<Host> replicas, long lastRepairedAt); LongTokenRange getTokenRange(); ImmutableSet<Host> getReplicas(); long lastRepairedAt(); boolean isSameVnode(VnodeRepairState other); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
VnodeRepairState { public long lastRepairedAt() { return myLastRepairedAt; } VnodeRepairState(LongTokenRange tokenRange, ImmutableSet<Host> replicas, long lastRepairedAt); LongTokenRange getTokenRange(); ImmutableSet<Host> getReplicas(); long lastRepairedAt(); boolean isSameVnode(VnodeRepairState other); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final long UNREPAIRED; }