@Test public void getPersonalIdentifierForKubernetesNode () { doCallRealMethod().when(chaosHostIdentityProvider).getPersonalIdentifier(); assertEquals("k8s:hostname.staging", chaosHostIdentityProvider.getPersonalIdentifier()); }
String getPersonalIdentifier () { return Stream.<Supplier<String>>of(this::getKubernetesIdentifier, this::getHostName).map(Supplier::get) .filter(Objects::nonNull) .findFirst() .orElse(null); }
ChaosHostIdentityProvider extends PropertyDefinerBase { String getPersonalIdentifier () { return Stream.<Supplier<String>>of(this::getKubernetesIdentifier, this::getHostName).map(Supplier::get) .filter(Objects::nonNull) .findFirst() .orElse(null); } }
ChaosHostIdentityProvider extends PropertyDefinerBase { String getPersonalIdentifier () { return Stream.<Supplier<String>>of(this::getKubernetesIdentifier, this::getHostName).map(Supplier::get) .filter(Objects::nonNull) .findFirst() .orElse(null); }  }
ChaosHostIdentityProvider extends PropertyDefinerBase { String getPersonalIdentifier () { return Stream.<Supplier<String>>of(this::getKubernetesIdentifier, this::getHostName).map(Supplier::get) .filter(Objects::nonNull) .findFirst() .orElse(null); }  @Override String getPropertyValue(); }
ChaosHostIdentityProvider extends PropertyDefinerBase { String getPersonalIdentifier () { return Stream.<Supplier<String>>of(this::getKubernetesIdentifier, this::getHostName).map(Supplier::get) .filter(Objects::nonNull) .findFirst() .orElse(null); }  @Override String getPropertyValue();  }