use of io.github.asw.i3a.operatorsWebClient.entitites.Comment in project InciDashboard_i3a by Arquisoft.
the class IncidentController method giveNewDataToIncident.
private void giveNewDataToIncident(InciInfo newInciData, Incident incident, String opId) {
log.info("The old status of the incident is: " + incident.getStatus());
log.info("The NEW status: " + newInciData.getStatus());
incident.setStatus(newInciData.getStatus());
log.info("There are " + incident.getComments().size() + " comments in the incident");
log.info("Content of the new comment: " + newInciData.getComment());
incident.getComments().add(new Comment(newInciData.getComment(), opId));
log.info("UPDATE " + incident.getComments().size() + " comments in the incident");
}
use of io.github.asw.i3a.operatorsWebClient.entitites.Comment in project InciDashboard_i3a by Arquisoft.
the class CommentTest method extraTest.
@Test
public void extraTest() {
Comment c = new Comment("hola", "idOp");
Date d = new Date();
assertTrue(c.getDate().getTime() <= d.getTime());
Comment c2 = new Comment();
assertTrue(c.canEquals(c2));
}