Skip to content
Snippets Groups Projects
Commit 882b7ad3 authored by OZGCloud's avatar OZGCloud
Browse files

fix tests

parent cd180dcb
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.logging.Level;
import org.mapstruct.factory.Mappers;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
......@@ -38,7 +37,7 @@ public class GrpcOzgCloudFileService implements OzgCloudFileService {
@GrpcClient("file-manager")
private final BinaryFileServiceStub asyncServiceStub;
private final OzgCloudFileMapper mapper = Mappers.getMapper(OzgCloudFileMapper.class);
private final OzgCloudFileMapper mapper;
static final int CHUNK_SIZE = 255 * 1024;
......
......@@ -2,7 +2,6 @@ package de.ozgcloud.apilib.vorgang.grpc;
import java.util.List;
import org.mapstruct.factory.Mappers;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
......@@ -28,8 +27,8 @@ public class GrpcOzgCloudVorgangService implements OzgCloudVorgangService {
@GrpcClient("vorgang-manager")
private final VorgangServiceBlockingStub vorgangServiceStub;
private OzgCloudVorgangMapper mapper = Mappers.getMapper(OzgCloudVorgangMapper.class);
private OzgCloudVorgangStubMapper stubMapper = Mappers.getMapper(OzgCloudVorgangStubMapper.class);
private final OzgCloudVorgangMapper mapper;
private final OzgCloudVorgangStubMapper stubMapper;
@Override
public OzgCloudVorgang getById(@NonNull OzgCloudVorgangId vorgangId) {
......
......@@ -44,7 +44,7 @@ class OzgCloudVorgangMapperTest {
var mapped = mapper.fromGrpc(GrpcVorgangWithEingangTestFactory.create());
assertThat(mapped.getEingangs()).hasSize(1).first()
.usingRecursiveComparison()
.usingRecursiveComparison().ignoringFields("attachments")
.isEqualTo(OzgCloudVorgangEingangTestFactory.create());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment