Update PipelineProcessorTest.java

This commit is contained in:
Ludy87 2025-07-31 17:30:11 +02:00
parent 5bef36c2db
commit a096ab56b5
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -45,7 +45,7 @@ class PipelineProcessorTest {
@Test
void runPipelineWithFilterSetsFlag() throws Exception {
PipelineOperation op = new PipelineOperation();
op.setOperation("filter-page-count");
op.setOperation("/api/v1/filter/filter-page-count");
op.setParameters(Map.of());
PipelineConfig config = new PipelineConfig();
config.setOperations(List.of(op));
@ -59,8 +59,8 @@ class PipelineProcessorTest {
List<Resource> files = List.of(file);
when(apiDocService.isMultiInput("filter-page-count")).thenReturn(false);
when(apiDocService.getExtensionTypes(false, "filter-page-count"))
when(apiDocService.isMultiInput("/api/v1/filter/filter-page-count")).thenReturn(false);
when(apiDocService.getExtensionTypes(false, "/api/v1/filter/filter-page-count"))
.thenReturn(List.of("pdf"));
doReturn(new ResponseEntity<>(new byte[0], HttpStatus.OK))