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; 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.assertj.core.api.Assertions.*;
import static org.grpcmock.GrpcMock.*; import static org.grpcmock.GrpcMock.*;
...@@ -93,10 +94,10 @@ public class MantelantragITCase { ...@@ -93,10 +94,10 @@ public class MantelantragITCase {
verifyThat( verifyThat(
calledMethod(VorgangServiceGrpc.getStartCreationMethod()) calledMethod(VorgangServiceGrpc.getStartCreationMethod())
.withRequest(GrpcCreateVorgangRequest::hasEingang), .withRequest(GrpcCreateVorgangRequest::hasEingang),
atLeast(1)); times(1));
verifyThat( verifyThat(
calledMethod(VorgangServiceGrpc.getFinishCreationMethod()), calledMethod(VorgangServiceGrpc.getFinishCreationMethod()),
atLeast(1)); times(1));
} }
private void expectTwoUploadCallsForXmlRepresentations() { private void expectTwoUploadCallsForXmlRepresentations() {
...@@ -107,7 +108,7 @@ public class MantelantragITCase { ...@@ -107,7 +108,7 @@ public class MantelantragITCase {
verifyThat( verifyThat(
calledMethod(BinaryFileServiceGrpc.getUploadBinaryFileAsStreamMethod()) calledMethod(BinaryFileServiceGrpc.getUploadBinaryFileAsStreamMethod())
.withRequestsContaining(hasXMLContentType), .withRequestsContaining(hasXMLContentType),
atLeast(2)); times(2));
} }
@Autowired @Autowired
...@@ -213,6 +214,14 @@ public class MantelantragITCase { ...@@ -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() { private FormData prepareTestData() {
var xdomeaFile = IncomingFileTestFactory.createBuilder() var xdomeaFile = IncomingFileTestFactory.createBuilder()
.name(FILE_NAME_XDOMEA) .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