From ff2b915315c9dcb4d5700e525c2e9c5055db59e5 Mon Sep 17 00:00:00 2001 From: Andreas Mautsch Date: Wed, 13 Nov 2024 08:14:16 +0100 Subject: [PATCH] pdf renderer added --- .../logic => doc/examples/pdf}/PDFBoxCreatorLogic.java | 0 .../logic => doc/examples/pdf}/PDFBoxCreatorLogicTest.java | 0 src/main/java/org/goafabric/calleeservice/Application.java | 4 ++-- .../logic/{OpenPDFCreatorLogic.java => PDFCreatorLogic.java} | 2 +- ...{OpenPDFCreatorLogicTest.java => PDFCreatorLogicTest.java} | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) rename {src/main/java/org/goafabric/calleeservice/logic => doc/examples/pdf}/PDFBoxCreatorLogic.java (100%) rename {src/test/java/org/goafabric/calleeservice/logic => doc/examples/pdf}/PDFBoxCreatorLogicTest.java (100%) rename src/main/java/org/goafabric/calleeservice/logic/{OpenPDFCreatorLogic.java => PDFCreatorLogic.java} (98%) rename src/test/java/org/goafabric/calleeservice/logic/{OpenPDFCreatorLogicTest.java => PDFCreatorLogicTest.java} (91%) diff --git a/src/main/java/org/goafabric/calleeservice/logic/PDFBoxCreatorLogic.java b/doc/examples/pdf/PDFBoxCreatorLogic.java similarity index 100% rename from src/main/java/org/goafabric/calleeservice/logic/PDFBoxCreatorLogic.java rename to doc/examples/pdf/PDFBoxCreatorLogic.java diff --git a/src/test/java/org/goafabric/calleeservice/logic/PDFBoxCreatorLogicTest.java b/doc/examples/pdf/PDFBoxCreatorLogicTest.java similarity index 100% rename from src/test/java/org/goafabric/calleeservice/logic/PDFBoxCreatorLogicTest.java rename to doc/examples/pdf/PDFBoxCreatorLogicTest.java diff --git a/src/main/java/org/goafabric/calleeservice/Application.java b/src/main/java/org/goafabric/calleeservice/Application.java index 8c0fd825..1a9571df 100644 --- a/src/main/java/org/goafabric/calleeservice/Application.java +++ b/src/main/java/org/goafabric/calleeservice/Application.java @@ -1,6 +1,6 @@ package org.goafabric.calleeservice; -import org.goafabric.calleeservice.logic.OpenPDFCreatorLogic; +import org.goafabric.calleeservice.logic.PDFCreatorLogic; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -15,7 +15,7 @@ public static void main(String[] args){ } @Bean - public CommandLineRunner init(ApplicationContext context, OpenPDFCreatorLogic openPDFCreator) { + public CommandLineRunner init(ApplicationContext context, PDFCreatorLogic openPDFCreator) { return args -> {if ((args.length > 0) && ("-check-integrity".equals(args[0]))) {SpringApplication.exit(context, () -> 0);}}; } diff --git a/src/main/java/org/goafabric/calleeservice/logic/OpenPDFCreatorLogic.java b/src/main/java/org/goafabric/calleeservice/logic/PDFCreatorLogic.java similarity index 98% rename from src/main/java/org/goafabric/calleeservice/logic/OpenPDFCreatorLogic.java rename to src/main/java/org/goafabric/calleeservice/logic/PDFCreatorLogic.java index 77a7c5dd..af48ce0e 100644 --- a/src/main/java/org/goafabric/calleeservice/logic/OpenPDFCreatorLogic.java +++ b/src/main/java/org/goafabric/calleeservice/logic/PDFCreatorLogic.java @@ -13,7 +13,7 @@ import java.util.List; @Component -public class OpenPDFCreatorLogic { +public class PDFCreatorLogic { @PostConstruct public byte[] create() { diff --git a/src/test/java/org/goafabric/calleeservice/logic/OpenPDFCreatorLogicTest.java b/src/test/java/org/goafabric/calleeservice/logic/PDFCreatorLogicTest.java similarity index 91% rename from src/test/java/org/goafabric/calleeservice/logic/OpenPDFCreatorLogicTest.java rename to src/test/java/org/goafabric/calleeservice/logic/PDFCreatorLogicTest.java index 594425e5..b780b7f4 100644 --- a/src/test/java/org/goafabric/calleeservice/logic/OpenPDFCreatorLogicTest.java +++ b/src/test/java/org/goafabric/calleeservice/logic/PDFCreatorLogicTest.java @@ -11,9 +11,9 @@ import java.nio.file.Files; @SpringBootTest -class OpenPDFCreatorLogicTest { +class PDFCreatorLogicTest { @Autowired - private OpenPDFCreatorLogic openPDFCreator; + private PDFCreatorLogic openPDFCreator; private final Logger log = LoggerFactory.getLogger(this.getClass().getName());