use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.
the class IntygReadMessage method build.
public static PdlLogMessage build(String intygId) {
PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.READ);
pdlLogMessage.setActivityLevel(intygId);
return pdlLogMessage;
}
use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.
the class IntygSendMessage method build.
public static PdlLogMessage build(String intygId, String additionalInfo) {
PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.SEND);
pdlLogMessage.setActivityLevel(intygId);
pdlLogMessage.setActivityArgs(additionalInfo);
return pdlLogMessage;
}
use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.
the class IntygUpdateMessage method build.
public static PdlLogMessage build(String intygId) {
PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.UPDATE);
pdlLogMessage.setActivityLevel(intygId);
return pdlLogMessage;
}
use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.
the class LogMessagePopulatorImplTest method testActivityArgsAddedFromAdditionalInfoWhenActivityArgsAbsent.
@Test
public void testActivityArgsAddedFromAdditionalInfoWhenActivityArgsAbsent() {
PdlLogMessage logMessage = testee.populateLogMessage(buildLogRequest(ADDITIONAL_INFO), buildPdlLogMessage(""), buildLogUser());
assertEquals(ADDITIONAL_INFO, logMessage.getActivityArgs());
}
use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.
the class LogMessagePopulatorImplTest method testActivityArgsUntouchedWhenActivityArgsExistsButNoAdditionalInfo.
@Test
public void testActivityArgsUntouchedWhenActivityArgsExistsButNoAdditionalInfo() {
PdlLogMessage logMessage = testee.populateLogMessage(buildLogRequest(""), buildPdlLogMessage(ACTIVITY_ARGS), buildLogUser());
assertEquals(ACTIVITY_ARGS, logMessage.getActivityArgs());
}
Aggregations