@Test void describeShouldReturnAnIdentifiableDescription() { final LeaseLock leaseLock = new LeaseLock("namespace", "name", "1337"); final String description = leaseLock.describe(); assertEquals("LeaseLock: namespace - name (1337)", description); }
@Override public String describe() { return String.format("LeaseLock: %s - %s (%s)", leaseNamespace, leaseName, identity); }
LeaseLock implements Lock { @Override public String describe() { return String.format("LeaseLock: %s - %s (%s)", leaseNamespace, leaseName, identity); } }
LeaseLock implements Lock { @Override public String describe() { return String.format("LeaseLock: %s - %s (%s)", leaseNamespace, leaseName, identity); } LeaseLock(String leaseNamespace, String leaseName, String identity); }
LeaseLock implements Lock { @Override public String describe() { return String.format("LeaseLock: %s - %s (%s)", leaseNamespace, leaseName, identity); } LeaseLock(String leaseNamespace, String leaseName, String identity); @Override LeaderElectionRecord get(C client); @Override void create(
    C client, LeaderElectionRecord leaderElectionRecord); @Override void update(
    C client, LeaderElectionRecord leaderElectionRecord); @Override String identity(); @Override String describe(); }
LeaseLock implements Lock { @Override public String describe() { return String.format("LeaseLock: %s - %s (%s)", leaseNamespace, leaseName, identity); } LeaseLock(String leaseNamespace, String leaseName, String identity); @Override LeaderElectionRecord get(C client); @Override void create(
    C client, LeaderElectionRecord leaderElectionRecord); @Override void update(
    C client, LeaderElectionRecord leaderElectionRecord); @Override String identity(); @Override String describe();  }