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

OZG-536 OZG-595 update grpc ozgFile naming

parent 8bcee4d1
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ message GrpcGetAttachmentsRequest { ...@@ -27,7 +27,7 @@ message GrpcGetAttachmentsRequest {
string eingangId = 2; string eingangId = 2;
} }
message GrpcGetAttachmentsResponse { message GrpcGetAttachmentsResponse {
repeated GrpcFile file = 1; repeated GrpcOzgFile file = 1;
} }
...@@ -36,10 +36,10 @@ message GrpcGetRepresentationsRequest { ...@@ -36,10 +36,10 @@ message GrpcGetRepresentationsRequest {
string eingangId = 2; string eingangId = 2;
} }
message GrpcGetRepresentationsResponse { message GrpcGetRepresentationsResponse {
repeated GrpcFile file = 1; repeated GrpcOzgFile file = 1;
} }
message GrpcFile { message GrpcOzgFile {
string id = 1; string id = 1;
string name = 2; string name = 2;
int64 size = 3; int64 size = 3;
......
...@@ -4,10 +4,10 @@ import java.util.List; ...@@ -4,10 +4,10 @@ import java.util.List;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import de.itvsh.ozg.pluto.grpc.file.GrpcFile; import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFile;
@Mapper @Mapper
interface GrpcFileMetaDataResponseMapper { interface GrpcFileMetaDataResponseMapper {
List<GrpcFile> map(List<OzgFile> files); List<GrpcOzgFile> map(List<OzgFile> files);
} }
...@@ -7,7 +7,7 @@ import com.google.protobuf.ByteString; ...@@ -7,7 +7,7 @@ import com.google.protobuf.ByteString;
import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFileData; import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFileData;
@Mapper @Mapper
public interface GrpcGetOzgFileDataResponseMapper { interface GrpcGetOzgFileDataResponseMapper {
GrpcOzgFileData map(OzgFileData file); GrpcOzgFileData map(OzgFileData file);
......
...@@ -7,7 +7,7 @@ import java.util.List; ...@@ -7,7 +7,7 @@ import java.util.List;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;
import de.itvsh.ozg.pluto.grpc.file.GrpcFile; import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFile;
class GrpcFileMetaDataResponseMapperTest { class GrpcFileMetaDataResponseMapperTest {
...@@ -16,7 +16,7 @@ class GrpcFileMetaDataResponseMapperTest { ...@@ -16,7 +16,7 @@ class GrpcFileMetaDataResponseMapperTest {
@Test @Test
void validateMapping() { void validateMapping() {
List<GrpcFile> response = mapper.map(List.of(OzgFileTestFactory.create())); List<GrpcOzgFile> response = mapper.map(List.of(OzgFileTestFactory.create()));
assertThat(response).isNotNull().hasSize(1); assertThat(response).isNotNull().hasSize(1);
} }
......
...@@ -12,13 +12,13 @@ import org.springframework.data.mongodb.core.MongoOperations; ...@@ -12,13 +12,13 @@ import org.springframework.data.mongodb.core.MongoOperations;
import de.itvsh.ozg.pluto.common.grpc.StreamRecorder; import de.itvsh.ozg.pluto.common.grpc.StreamRecorder;
import de.itvsh.ozg.pluto.common.test.DataITCase; import de.itvsh.ozg.pluto.common.test.DataITCase;
import de.itvsh.ozg.pluto.grpc.file.GrpcFile;
import de.itvsh.ozg.pluto.grpc.file.GrpcGetAttachmentsRequest; import de.itvsh.ozg.pluto.grpc.file.GrpcGetAttachmentsRequest;
import de.itvsh.ozg.pluto.grpc.file.GrpcGetAttachmentsResponse; import de.itvsh.ozg.pluto.grpc.file.GrpcGetAttachmentsResponse;
import de.itvsh.ozg.pluto.grpc.file.GrpcGetOzgFileDataRequest; import de.itvsh.ozg.pluto.grpc.file.GrpcGetOzgFileDataRequest;
import de.itvsh.ozg.pluto.grpc.file.GrpcGetOzgFileDataResponse; import de.itvsh.ozg.pluto.grpc.file.GrpcGetOzgFileDataResponse;
import de.itvsh.ozg.pluto.grpc.file.GrpcGetRepresentationsRequest; import de.itvsh.ozg.pluto.grpc.file.GrpcGetRepresentationsRequest;
import de.itvsh.ozg.pluto.grpc.file.GrpcGetRepresentationsResponse; import de.itvsh.ozg.pluto.grpc.file.GrpcGetRepresentationsResponse;
import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFile;
import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFileData; import de.itvsh.ozg.pluto.grpc.file.GrpcOzgFileData;
import de.itvsh.ozg.pluto.vorgang.IncomingFileTestFactory; import de.itvsh.ozg.pluto.vorgang.IncomingFileTestFactory;
import de.itvsh.ozg.pluto.vorgang.Vorgang; import de.itvsh.ozg.pluto.vorgang.Vorgang;
...@@ -60,7 +60,7 @@ class GrpcFileServiceITCase { ...@@ -60,7 +60,7 @@ class GrpcFileServiceITCase {
assertThat(grpcResponse.get(0).getFileList()).hasSize(2); assertThat(grpcResponse.get(0).getFileList()).hasSize(2);
GrpcFile attachment1 = grpcResponse.get(0).getFile(0); GrpcOzgFile attachment1 = grpcResponse.get(0).getFile(0);
assertThat(attachment1.getId()).isEqualTo(IncomingFileTestFactory.ID); assertThat(attachment1.getId()).isEqualTo(IncomingFileTestFactory.ID);
assertThat(attachment1.getName()).isEqualTo(IncomingFileTestFactory.NAME); assertThat(attachment1.getName()).isEqualTo(IncomingFileTestFactory.NAME);
...@@ -84,7 +84,7 @@ class GrpcFileServiceITCase { ...@@ -84,7 +84,7 @@ class GrpcFileServiceITCase {
assertThat(grpcResponse.get(0).getFileList()).hasSize(3); assertThat(grpcResponse.get(0).getFileList()).hasSize(3);
GrpcFile attachment1 = grpcResponse.get(0).getFile(0); GrpcOzgFile attachment1 = grpcResponse.get(0).getFile(0);
assertThat(attachment1.getId()).isEqualTo(IncomingFileTestFactory.REPRESENTATION1_ID); assertThat(attachment1.getId()).isEqualTo(IncomingFileTestFactory.REPRESENTATION1_ID);
assertThat(attachment1.getName()).isEqualTo(IncomingFileTestFactory.REPRESENTATION1_NAME); assertThat(attachment1.getName()).isEqualTo(IncomingFileTestFactory.REPRESENTATION1_NAME);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment