@Test public void testNoData() throws IOException { MinionFingersOnMasterResponse response = JsonUtil.readValue(NO_DATA, MinionFingersOnMasterResponse.class); assertTrue(response.getUnacceptedMinions().isEmpty()); }
public Map<String, String> getUnacceptedMinions() { Optional<JsonNode> minionsWithFingerprint = mapToMinionsWithFingerprint(); if (minionsWithFingerprint.isPresent()) { return collectFingerprintByMinion(minionsWithFingerprint.get()); } else { return Map.of(); } }
MinionFingersOnMasterResponse { public Map<String, String> getUnacceptedMinions() { Optional<JsonNode> minionsWithFingerprint = mapToMinionsWithFingerprint(); if (minionsWithFingerprint.isPresent()) { return collectFingerprintByMinion(minionsWithFingerprint.get()); } else { return Map.of(); } } }
MinionFingersOnMasterResponse { public Map<String, String> getUnacceptedMinions() { Optional<JsonNode> minionsWithFingerprint = mapToMinionsWithFingerprint(); if (minionsWithFingerprint.isPresent()) { return collectFingerprintByMinion(minionsWithFingerprint.get()); } else { return Map.of(); } }  }
MinionFingersOnMasterResponse { public Map<String, String> getUnacceptedMinions() { Optional<JsonNode> minionsWithFingerprint = mapToMinionsWithFingerprint(); if (minionsWithFingerprint.isPresent()) { return collectFingerprintByMinion(minionsWithFingerprint.get()); } else { return Map.of(); } }  Map<String, String> getUnacceptedMinions(); List<Map<String, JsonNode>> getResult(); void setResult(List<Map<String, JsonNode>> result); @Override String toString(); }
MinionFingersOnMasterResponse { public Map<String, String> getUnacceptedMinions() { Optional<JsonNode> minionsWithFingerprint = mapToMinionsWithFingerprint(); if (minionsWithFingerprint.isPresent()) { return collectFingerprintByMinion(minionsWithFingerprint.get()); } else { return Map.of(); } }  Map<String, String> getUnacceptedMinions(); List<Map<String, JsonNode>> getResult(); void setResult(List<Map<String, JsonNode>> result); @Override String toString();  }