@Test public void getFullMarkerLiverTest() { organ = Organ.LIVER; donatedOrgan = new DonatedOrgan(organ, donor, dateTimeOfDonation); assertEquals(1, donatedOrgan.getFullMarker()); }
public double getFullMarker() { Duration min = getOrganType().getMinExpiration(); Duration max = getOrganType().getMaxExpiration(); if (min == null || max == null) { return 1; } else { return (double) min.getSeconds() / max.getSeconds(); } }
DonatedOrgan { public double getFullMarker() { Duration min = getOrganType().getMinExpiration(); Duration max = getOrganType().getMaxExpiration(); if (min == null || max == null) { return 1; } else { return (double) min.getSeconds() / max.getSeconds(); } } }
DonatedOrgan { public double getFullMarker() { Duration min = getOrganType().getMinExpiration(); Duration max = getOrganType().getMaxExpiration(); if (min == null || max == null) { return 1; } else { return (double) min.getSeconds() / max.getSeconds(); } } protected  DonatedOrgan();  DonatedOrgan(Organ organType, Client donor, LocalDateTime dateTimeOfDonation);  DonatedOrgan(Organ organType, Client donor, LocalDateTime dateTimeOfDonation, Long id); }
DonatedOrgan { public double getFullMarker() { Duration min = getOrganType().getMinExpiration(); Duration max = getOrganType().getMaxExpiration(); if (min == null || max == null) { return 1; } else { return (double) min.getSeconds() / max.getSeconds(); } } protected  DonatedOrgan();  DonatedOrgan(Organ organType, Client donor, LocalDateTime dateTimeOfDonation);  DonatedOrgan(Organ organType, Client donor, LocalDateTime dateTimeOfDonation, Long id); static Comparator<DonatedOrgan> getComparator(DonatedOrganSortOptionsEnum sortOption); Organ getOrganType(); Client getDonor(); void setDonor(Client donor); Client getReceiver(); void setReceiver(Client receiver); LocalDateTime getDateTimeOfDonation(); void setDateTimeOfDonation(LocalDateTime dateTimeOfDonation); boolean hasExpired(); boolean hasExpiredNaturally(); Duration getDurationUntilExpiry(); double getProgressDecimal(); double getFullMarker(); Long getId(); void setId(long id); boolean isAvailable(); void setAvailable(boolean available); String getOverrideReason(); @JsonIgnore String getRawOverrideReason(); void manuallyOverride(String overrideReason); void cancelManualOverride(); OrganState getState(); OrganState getState(boolean includeTransplantStatus); @Override boolean equals(Object o); @Override int hashCode(); }
DonatedOrgan { public double getFullMarker() { Duration min = getOrganType().getMinExpiration(); Duration max = getOrganType().getMaxExpiration(); if (min == null || max == null) { return 1; } else { return (double) min.getSeconds() / max.getSeconds(); } } protected  DonatedOrgan();  DonatedOrgan(Organ organType, Client donor, LocalDateTime dateTimeOfDonation);  DonatedOrgan(Organ organType, Client donor, LocalDateTime dateTimeOfDonation, Long id); static Comparator<DonatedOrgan> getComparator(DonatedOrganSortOptionsEnum sortOption); Organ getOrganType(); Client getDonor(); void setDonor(Client donor); Client getReceiver(); void setReceiver(Client receiver); LocalDateTime getDateTimeOfDonation(); void setDateTimeOfDonation(LocalDateTime dateTimeOfDonation); boolean hasExpired(); boolean hasExpiredNaturally(); Duration getDurationUntilExpiry(); double getProgressDecimal(); double getFullMarker(); Long getId(); void setId(long id); boolean isAvailable(); void setAvailable(boolean available); String getOverrideReason(); @JsonIgnore String getRawOverrideReason(); void manuallyOverride(String overrideReason); void cancelManualOverride(); OrganState getState(); OrganState getState(boolean includeTransplantStatus); @Override boolean equals(Object o); @Override int hashCode();  }