@Test void identityShouldReturnProvidedIdentity() { final LeaseLock leaseLock = new LeaseLock("namespace", "name", "1337"); final String identity = leaseLock.identity(); assertEquals("1337", identity); }
@Override public String identity() { return identity; }
LeaseLock implements Lock { @Override public String identity() { return identity; } }
LeaseLock implements Lock { @Override public String identity() { return identity; } LeaseLock(String leaseNamespace, String leaseName, String identity); }
LeaseLock implements Lock { @Override public String identity() { return 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 identity() { return 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();  }