use of no.difi.meldingsutveksling.noarkexchange.schema.PutMessageRequestType in project efm-integrasjonspunkt by felleslosninger.
the class EphorteClientTest method testSendEduMelding.
@Test
public void testSendEduMelding() throws Exception {
NoarkClientSettings settings = new NoarkClientSettings("http://localhost:7778/ephorte", "", "");
EphorteClient client = new EphorteClient(settings);
PutMessageResponseType result = client.sendEduMelding(new PutMessageRequestType());
assertEquals("Hello world", result.getResult().getType());
}
use of no.difi.meldingsutveksling.noarkexchange.schema.PutMessageRequestType in project efm-integrasjonspunkt by felleslosninger.
the class IntegrasjonspunktImplTest method shouldPutMessageOnQueueWhenPartyNumberIsInRequest.
@Test
public void shouldPutMessageOnQueueWhenPartyNumberIsInRequest() {
PutMessageRequestType request = PutMessageObjectMother.createMessageRequestType("12345");
integrasjonspunkt.putMessage(request);
verify(nextMoveAdapterMock, times(1)).convertAndSend(any(PutMessageRequestWrapper.class));
}
use of no.difi.meldingsutveksling.noarkexchange.schema.PutMessageRequestType in project efm-integrasjonspunkt by felleslosninger.
the class IntegrasjonspunktImplTest method shouldPutMessageOnQueueWhenOrganisationNumberIsConfigured.
@Test
public void shouldPutMessageOnQueueWhenOrganisationNumberIsConfigured() {
when(organizationMock.getNumber()).thenReturn("1234");
PutMessageRequestType request = PutMessageObjectMother.createMessageRequestType(null);
integrasjonspunkt.putMessage(request);
verify(nextMoveAdapterMock, times(1)).convertAndSend(any(PutMessageRequestWrapper.class));
}
use of no.difi.meldingsutveksling.noarkexchange.schema.PutMessageRequestType in project efm-integrasjonspunkt by felleslosninger.
the class IntegrasjonspunktImplTest method shouldPutMessageOnQueueWhenOrganisationNumberIsProvided.
@Test
public void shouldPutMessageOnQueueWhenOrganisationNumberIsProvided() {
PutMessageRequestType request = PutMessageObjectMother.createMessageRequestType("12345");
integrasjonspunkt.putMessage(request);
verify(nextMoveAdapterMock, times(1)).convertAndSend(any(PutMessageRequestWrapper.class));
}
use of no.difi.meldingsutveksling.noarkexchange.schema.PutMessageRequestType in project efm-integrasjonspunkt by felleslosninger.
the class IpMailSenderTest method send.
private void send() throws JAXBException, IOException {
PutMessageRequestType putMessage = createPutMessageCdataXml(FileUtils.readFileToString(new File("src/test/resources/putmessage_test.xml"), StandardCharsets.UTF_8));
ipMailSender.send(putMessage, "foo");
}
Aggregations