Search in sources :

Example 6 with PdlLogMessage

use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.

the class LogMessagePopulatorImplTest method testActivityArgsUntouchedWhenActivityArgsIsEqualToAdditionalInfo.

@Test
public void testActivityArgsUntouchedWhenActivityArgsIsEqualToAdditionalInfo() {
    PdlLogMessage logMessage = testee.populateLogMessage(buildLogRequest(ACTIVITY_ARGS), buildPdlLogMessage(ACTIVITY_ARGS), buildLogUser());
    assertEquals(ACTIVITY_ARGS, logMessage.getActivityArgs());
}
Also used : PdlLogMessage(se.inera.intyg.infra.logmessages.PdlLogMessage) Test(org.junit.Test)

Example 7 with PdlLogMessage

use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.

the class IntygRevokeMessage method build.

public static PdlLogMessage build(String intygId) {
    PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.REVOKE);
    pdlLogMessage.setActivityLevel(intygId);
    return pdlLogMessage;
}
Also used : PdlLogMessage(se.inera.intyg.infra.logmessages.PdlLogMessage)

Example 8 with PdlLogMessage

use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.

the class IntygSignMessage method build.

public static PdlLogMessage build(String intygId) {
    PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.SIGN);
    pdlLogMessage.setActivityLevel(intygId);
    return pdlLogMessage;
}
Also used : PdlLogMessage(se.inera.intyg.infra.logmessages.PdlLogMessage)

Example 9 with PdlLogMessage

use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.

the class IntygCreateMessage method build.

public static PdlLogMessage build(String intygId) {
    PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.CREATE);
    pdlLogMessage.setActivityLevel(intygId);
    return pdlLogMessage;
}
Also used : PdlLogMessage(se.inera.intyg.infra.logmessages.PdlLogMessage)

Example 10 with PdlLogMessage

use of se.inera.intyg.infra.logmessages.PdlLogMessage in project webcert by sklintyg.

the class IntygPredictionMessage method build.

public static PdlLogMessage build(String activityArgs) {
    PdlLogMessage pdlLogMessage = new PdlLogMessage(ActivityType.READ);
    pdlLogMessage.setActivityArgs(activityArgs);
    return pdlLogMessage;
}
Also used : PdlLogMessage(se.inera.intyg.infra.logmessages.PdlLogMessage)

Aggregations

PdlLogMessage (se.inera.intyg.infra.logmessages.PdlLogMessage)16 Test (org.junit.Test)5 IOException (java.io.IOException)1 Session (javax.jms.Session)1 MessageCreator (org.springframework.jms.core.MessageCreator)1 LogRequest (se.inera.intyg.webcert.web.service.log.dto.LogRequest)1