@Test public void testImmutableDate() { Date now = new Date(); ReserveNowRequestedForUnreservableChargingStationEvent event = new ReserveNowRequestedForUnreservableChargingStationEvent(CHARGING_STATION_ID, EVSE_ID, IDENTIFYING_TOKEN, now, PARENT_IDENTIFYING_TOKEN, ROOT_IDENTITY_CONTEXT); event.getExpiryDate().setTime(TWO_MINUTES_AGO.getTime()); assertEquals(now, event.getExpiryDate()); }
public Date getExpiryDate() { return new Date(expiryDate.getTime()); }
ReserveNowRequestedForUnreservableChargingStationEvent { public Date getExpiryDate() { return new Date(expiryDate.getTime()); } }
ReserveNowRequestedForUnreservableChargingStationEvent { public Date getExpiryDate() { return new Date(expiryDate.getTime()); } ReserveNowRequestedForUnreservableChargingStationEvent(ChargingStationId chargingStationId, EvseId evseId,
                                                                  IdentifyingToken identifyingToken, Date expiryDate, @Nullable IdentifyingToken parentIdentifyingToken, IdentityContext identityContext); }
ReserveNowRequestedForUnreservableChargingStationEvent { public Date getExpiryDate() { return new Date(expiryDate.getTime()); } ReserveNowRequestedForUnreservableChargingStationEvent(ChargingStationId chargingStationId, EvseId evseId,
                                                                  IdentifyingToken identifyingToken, Date expiryDate, @Nullable IdentifyingToken parentIdentifyingToken, IdentityContext identityContext); ChargingStationId getChargingStationId(); EvseId getEvseId(); IdentifyingToken getIdentifyingToken(); Date getExpiryDate(); IdentifyingToken getParentIdentifyingToken(); IdentityContext getIdentityContext(); @Override int hashCode(); @Override boolean equals(Object obj); }
ReserveNowRequestedForUnreservableChargingStationEvent { public Date getExpiryDate() { return new Date(expiryDate.getTime()); } ReserveNowRequestedForUnreservableChargingStationEvent(ChargingStationId chargingStationId, EvseId evseId,
                                                                  IdentifyingToken identifyingToken, Date expiryDate, @Nullable IdentifyingToken parentIdentifyingToken, IdentityContext identityContext); ChargingStationId getChargingStationId(); EvseId getEvseId(); IdentifyingToken getIdentifyingToken(); Date getExpiryDate(); IdentifyingToken getParentIdentifyingToken(); IdentityContext getIdentityContext(); @Override int hashCode(); @Override boolean equals(Object obj);  }