@Test public void testBootChargingStationResult() { Date now = new Date(); BootChargingStationResult result = new BootChargingStationResult(true, FIVE_MINUTES, now); assertTrue(result.isAccepted()); assertEquals(result.getHeartbeatInterval(), FIVE_MINUTES); assertEquals(result.getTimeStamp(), now); }
public BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp) { this.accepted = accepted; this.heartbeatInterval = heartbeatInterval; this.timeStamp = new Date(timeStamp.getTime()); }
BootChargingStationResult { public BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp) { this.accepted = accepted; this.heartbeatInterval = heartbeatInterval; this.timeStamp = new Date(timeStamp.getTime()); } }
BootChargingStationResult { public BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp) { this.accepted = accepted; this.heartbeatInterval = heartbeatInterval; this.timeStamp = new Date(timeStamp.getTime()); } BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp); }
BootChargingStationResult { public BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp) { this.accepted = accepted; this.heartbeatInterval = heartbeatInterval; this.timeStamp = new Date(timeStamp.getTime()); } BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp); boolean isAccepted(); int getHeartbeatInterval(); Date getTimeStamp(); }
BootChargingStationResult { public BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp) { this.accepted = accepted; this.heartbeatInterval = heartbeatInterval; this.timeStamp = new Date(timeStamp.getTime()); } BootChargingStationResult(boolean accepted, int heartbeatInterval, Date timeStamp); boolean isAccepted(); int getHeartbeatInterval(); Date getTimeStamp();  }