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

OZG-6161 perform renaming

parent d934a567
Branches
Tags 2.18.0
No related merge requests found
...@@ -29,7 +29,7 @@ class OzgcloudConfiguration { ...@@ -29,7 +29,7 @@ class OzgcloudConfiguration {
private BinaryFileServiceStub binaryFileServiceStub; private BinaryFileServiceStub binaryFileServiceStub;
@Bean(ArchiveManagerConfiguration.OZGCLOUD_FILE_SERVICE_NAME) @Bean(ArchiveManagerConfiguration.OZGCLOUD_FILE_SERVICE_NAME)
OzgCloudFileService archiveOzgCloudFileService(CallContextProvider contextProvider, OzgCloudFileMapper mapper) { OzgCloudFileService ozgCloudFileService(CallContextProvider contextProvider, OzgCloudFileMapper mapper) {
return new GrpcOzgCloudFileService(binaryFileServiceBlockingStub, binaryFileServiceStub, contextProvider, mapper); return new GrpcOzgCloudFileService(binaryFileServiceBlockingStub, binaryFileServiceStub, contextProvider, mapper);
} }
......
...@@ -24,7 +24,7 @@ import net.devh.boot.grpc.server.service.GrpcService; ...@@ -24,7 +24,7 @@ import net.devh.boot.grpc.server.service.GrpcService;
@GrpcService(interceptors = { CallContextInterceptor.class }) @GrpcService(interceptors = { CallContextInterceptor.class })
@RequiredArgsConstructor @RequiredArgsConstructor
class GrpcExportService extends ExportServiceImplBase { class ExportGrpcService extends ExportServiceImplBase {
private static final String EXPORT_FILENAME_TEMPLATE = "%s_Abgabe.Abgabe.0401.xdomea"; private static final String EXPORT_FILENAME_TEMPLATE = "%s_Abgabe.Abgabe.0401.xdomea";
......
...@@ -52,7 +52,7 @@ import net.devh.boot.grpc.client.inject.GrpcClient; ...@@ -52,7 +52,7 @@ import net.devh.boot.grpc.client.inject.GrpcClient;
}) })
@SpringJUnitConfig(classes = { GrpcIntegrationTestConfiguration.class }) @SpringJUnitConfig(classes = { GrpcIntegrationTestConfiguration.class })
@ITCase @ITCase
class GrpcExportServiceITCase { class ExportGrpcServiceITCase {
@GrpcClient("inProcess") @GrpcClient("inProcess")
private ExportServiceGrpc.ExportServiceBlockingStub clientService; private ExportServiceGrpc.ExportServiceBlockingStub clientService;
......
...@@ -35,11 +35,11 @@ import io.grpc.Context; ...@@ -35,11 +35,11 @@ import io.grpc.Context;
import io.grpc.stub.StreamObserver; import io.grpc.stub.StreamObserver;
import lombok.SneakyThrows; import lombok.SneakyThrows;
class GrpcExportServiceTest { class ExportGrpcServiceTest {
@InjectMocks @InjectMocks
@Spy @Spy
private GrpcExportService service; private ExportGrpcService service;
@Mock @Mock
private ExportService exportService; private ExportService exportService;
...@@ -306,7 +306,7 @@ class GrpcExportServiceTest { ...@@ -306,7 +306,7 @@ class GrpcExportServiceTest {
@Nested @Nested
class TestWithByteArrayInputStream { class TestWithByteArrayInputStream {
private final byte[] content = FileContentTestFactory.createContentInByte((int) (GrpcExportService.CHUNK_SIZE * 1.5)); private final byte[] content = FileContentTestFactory.createContentInByte((int) (ExportGrpcService.CHUNK_SIZE * 1.5));
private final InputStream inputStream = new ByteArrayInputStream(content); private final InputStream inputStream = new ByteArrayInputStream(content);
@BeforeEach @BeforeEach
...@@ -334,7 +334,7 @@ class GrpcExportServiceTest { ...@@ -334,7 +334,7 @@ class GrpcExportServiceTest {
verify(responseObserver) verify(responseObserver)
.onNext(argThat((response) -> response.getVorgangFile().getFileContent() .onNext(argThat((response) -> response.getVorgangFile().getFileContent()
.equals(ByteString.copyFrom(content, 0, GrpcExportService.CHUNK_SIZE)))); .equals(ByteString.copyFrom(content, 0, ExportGrpcService.CHUNK_SIZE))));
} }
@Test @Test
...@@ -343,8 +343,8 @@ class GrpcExportServiceTest { ...@@ -343,8 +343,8 @@ class GrpcExportServiceTest {
verify(responseObserver) verify(responseObserver)
.onNext(argThat((response) -> response.getVorgangFile().getFileContent() .onNext(argThat((response) -> response.getVorgangFile().getFileContent()
.equals(ByteString.copyFrom(content, GrpcExportService.CHUNK_SIZE, .equals(ByteString.copyFrom(content, ExportGrpcService.CHUNK_SIZE,
content.length - GrpcExportService.CHUNK_SIZE)))); content.length - ExportGrpcService.CHUNK_SIZE))));
} }
@Test @Test
...@@ -459,7 +459,7 @@ class GrpcExportServiceTest { ...@@ -459,7 +459,7 @@ class GrpcExportServiceTest {
void shouldConstructBufferedInputStreamWithChunkSize() { void shouldConstructBufferedInputStreamWithChunkSize() {
callService(); callService();
assertThat(chunkSize).isEqualTo(GrpcExportService.CHUNK_SIZE); assertThat(chunkSize).isEqualTo(ExportGrpcService.CHUNK_SIZE);
} }
@Test @Test
......
...@@ -19,7 +19,7 @@ import net.devh.boot.grpc.server.autoconfigure.GrpcServerFactoryAutoConfiguratio ...@@ -19,7 +19,7 @@ import net.devh.boot.grpc.server.autoconfigure.GrpcServerFactoryAutoConfiguratio
public class GrpcIntegrationTestConfiguration { public class GrpcIntegrationTestConfiguration {
@Bean @Bean
GrpcExportService grpcExportService(ExportService exportService) { ExportGrpcService grpcExportService(ExportService exportService) {
return new GrpcExportService(exportService); return new ExportGrpcService(exportService);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment