Skip to content
Snippets Groups Projects
Commit c8ccbeae authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-6753 api test sendMessage

- transportReport hat Status OPEN
parent bc2b839a
Branches
Tags
No related merge requests found
...@@ -178,5 +178,31 @@ class XtaClientITCase { ...@@ -178,5 +178,31 @@ class XtaClientITCase {
} }
} }
@DisplayName("send message")
@Nested
class TestSendMessage {
private XtaMessage message;
@BeforeEach
void beforeEach() {
var messageConfig = XtaMessageExampleLoader.MessageExampleConfig.builder()
.messageLabel("dfoerdermittel")
.reader(CLIENT_IDENTIFIER1)
.author(CLIENT_IDENTIFIER1)
.build();
message = XtaMessageExampleLoader.load(messageConfig);
}
@DisplayName("should return transport report with open status")
@Test
@SneakyThrows
void shouldReturnTransportReportWithOpenStatus() {
var transportReport = client.sendMessage(message);
assertThat(transportReport.status()).isEqualTo(XtaMessageStatus.OPEN);
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment