Skip to content
Snippets Groups Projects
Commit 4ad9c1be authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

Revert "OZG-6748 KOP-2750 Fix MantelantragITCase"

This reverts commit 7ac93560.
parent 7ac93560
No related branches found
No related tags found
No related merge requests found
package de.ozgcloud.eingang.semantik.formbased.mantelantrag;
import static de.ozgcloud.eingang.common.formdata.FormDataTestFactory.*;
import static org.assertj.core.api.Assertions.*;
import static org.grpcmock.GrpcMock.*;
......@@ -93,10 +94,10 @@ public class MantelantragITCase {
verifyThat(
calledMethod(VorgangServiceGrpc.getStartCreationMethod())
.withRequest(GrpcCreateVorgangRequest::hasEingang),
atLeast(1));
times(1));
verifyThat(
calledMethod(VorgangServiceGrpc.getFinishCreationMethod()),
atLeast(1));
times(1));
}
private void expectTwoUploadCallsForXmlRepresentations() {
......@@ -107,7 +108,7 @@ public class MantelantragITCase {
verifyThat(
calledMethod(BinaryFileServiceGrpc.getUploadBinaryFileAsStreamMethod())
.withRequestsContaining(hasXMLContentType),
atLeast(2));
times(2));
}
@Autowired
......@@ -213,6 +214,14 @@ public class MantelantragITCase {
}
}
@DisplayName("should return first vorgangId")
@Test
void shouldReturnFirstVorgangId() {
var result = semantikAdapter.processFormData(formData);
assertThat(result).isEqualTo(VORGANG_ID);
}
private FormData prepareTestData() {
var xdomeaFile = IncomingFileTestFactory.createBuilder()
.name(FILE_NAME_XDOMEA)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment