mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-09-13 20:25:28 +02:00
Feature/pdf to markdown agent (#6271)
Co-authored-by: James Brunton <[email protected]>
This commit is contained in:
co-authored by
James Brunton
parent
5b9ef852ab
commit
ece1bb6865
+2
@@ -20,6 +20,7 @@ import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.mock.web.MockMultipartFile;
|
||||
|
||||
import stirling.software.SPDF.model.api.PDFWithPageNums;
|
||||
import stirling.software.SPDF.pdf.parser.TabulaTableParser;
|
||||
import stirling.software.common.service.CustomPDFDocumentFactory;
|
||||
import stirling.software.common.util.GeneralUtils;
|
||||
|
||||
@@ -27,6 +28,7 @@ import stirling.software.common.util.GeneralUtils;
|
||||
class ExtractCSVControllerTest {
|
||||
|
||||
@Mock private CustomPDFDocumentFactory pdfDocumentFactory;
|
||||
@Mock private TabulaTableParser tabulaTableParser;
|
||||
|
||||
@InjectMocks private ExtractCSVController controller;
|
||||
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
package stirling.software.SPDF.pdf;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
import org.apache.commons.csv.CSVFormat;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class FlexibleCSVWriterTest {
|
||||
|
||||
@Test
|
||||
void testDefaultConstructor() {
|
||||
FlexibleCSVWriter writer = new FlexibleCSVWriter();
|
||||
assertNotNull(writer, "The FlexibleCSVWriter instance should not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testConstructorWithCSVFormat() {
|
||||
CSVFormat csvFormat = CSVFormat.DEFAULT;
|
||||
FlexibleCSVWriter writer = new FlexibleCSVWriter(csvFormat);
|
||||
assertNotNull(
|
||||
writer,
|
||||
"The FlexibleCSVWriter instance should not be null when initialized with"
|
||||
+ " CSVFormat");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user