@Test void describeShouldReturnAnIdentifiableDescription() { final ConfigMapLock configMapLock = new ConfigMapLock("namespace", "name", "1337"); final String description = configMapLock.describe(); assertEquals("ConfigMapLock: namespace - name (1337)", description); }
@Override public String describe() { return String.format("ConfigMapLock: %s - %s (%s)", configMapNamespace, configMapName, identity); }
ConfigMapLock implements Lock { @Override public String describe() { return String.format("ConfigMapLock: %s - %s (%s)", configMapNamespace, configMapName, identity); } }
ConfigMapLock implements Lock { @Override public String describe() { return String.format("ConfigMapLock: %s - %s (%s)", configMapNamespace, configMapName, identity); } ConfigMapLock(String configMapNamespace, String configMapName, String identity); }
ConfigMapLock implements Lock { @Override public String describe() { return String.format("ConfigMapLock: %s - %s (%s)", configMapNamespace, configMapName, identity); } ConfigMapLock(String configMapNamespace, String configMapName, 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(); }
ConfigMapLock implements Lock { @Override public String describe() { return String.format("ConfigMapLock: %s - %s (%s)", configMapNamespace, configMapName, identity); } ConfigMapLock(String configMapNamespace, String configMapName, 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();  }