diff options
Diffstat (limited to 'src/test/scala/xyz/driver/common/pdf/MockPdfRenderer.scala')
-rw-r--r-- | src/test/scala/xyz/driver/common/pdf/MockPdfRenderer.scala | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/scala/xyz/driver/common/pdf/MockPdfRenderer.scala b/src/test/scala/xyz/driver/common/pdf/MockPdfRenderer.scala deleted file mode 100644 index c22817f..0000000 --- a/src/test/scala/xyz/driver/common/pdf/MockPdfRenderer.scala +++ /dev/null @@ -1,25 +0,0 @@ -package xyz.driver.common.pdf - -import java.nio.file.{Path, Paths} - -import xyz.driver.common.logging._ - -object MockPdfRenderer extends PdfRenderer with PhiLogging { - - private lazy val defaultDocument: Path = { - val uri = getClass.getResource("/pdf/example.pdf").toURI - Paths.get(uri) - } - - override def render(html: String, documentName: String, force: Boolean = false): Path = { - logger.trace(phi"render(html, documentName=${Unsafe(documentName)})") - defaultDocument - } - - override def delete(documentName: String): Unit = { - logger.trace(phi"delete(${Unsafe(documentName)})") - } - - override def getPath(documentName: String): Path = defaultDocument - -} |