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

OZG-2416 GrpcUploadRequest enfernt

parent fab9442f
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,9 @@ import org.springframework.util.unit.DataSize; ...@@ -9,11 +9,9 @@ import org.springframework.util.unit.DataSize;
import com.thedeanda.lorem.LoremIpsum; import com.thedeanda.lorem.LoremIpsum;
import de.itvsh.goofy.common.GrpcCallContextTestFactory;
import de.itvsh.goofy.common.file.GrpcOzgFileTestFactory; import de.itvsh.goofy.common.file.GrpcOzgFileTestFactory;
import de.itvsh.goofy.vorgang.VorgangHeaderTestFactory; import de.itvsh.goofy.vorgang.VorgangHeaderTestFactory;
import de.itvsh.ozg.pluto.grpc.binaryFile.GrpcFindFilesResponse; import de.itvsh.ozg.pluto.grpc.binaryFile.GrpcFindFilesResponse;
import de.itvsh.ozg.pluto.grpc.binaryFile.GrpcUploadRequest;
public class BinaryFileTestFactory { public class BinaryFileTestFactory {
...@@ -29,13 +27,6 @@ public class BinaryFileTestFactory { ...@@ -29,13 +27,6 @@ public class BinaryFileTestFactory {
public static final String VORGANG_ID = VorgangHeaderTestFactory.ID; public static final String VORGANG_ID = VorgangHeaderTestFactory.ID;
static final InputStream STREAM = new ByteArrayInputStream(DATA); static final InputStream STREAM = new ByteArrayInputStream(DATA);
public static GrpcUploadRequest createFileUploadRequest() {
return GrpcUploadRequest.newBuilder().setContext(GrpcCallContextTestFactory.create())
.setField(FIELD)
.setVorgangId(VORGANG_ID)
.build();
}
public static GrpcFindFilesResponse createFindBinaryFilesResponse() { public static GrpcFindFilesResponse createFindBinaryFilesResponse() {
return GrpcFindFilesResponse.newBuilder().addFile(GrpcOzgFileTestFactory.create()).build(); return GrpcFindFilesResponse.newBuilder().addFile(GrpcOzgFileTestFactory.create()).build();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment