Package pl.matsuo.core.test
Class AbstractPrintTest<E extends IPrintFacade>
java.lang.Object
pl.matsuo.core.test.AbstractPrintTest<E>
- All Implemented Interfaces:
PrintMethods
public abstract class AbstractPrintTest<E extends IPrintFacade> extends Object
-
Field Summary
Fields Modifier and Type Field Description protected FacadeBuilderfacadeBuilderprotected freemarker.template.ConfigurationfreeMarkerConfigurationprotected AbstractPrintService<E>printServiceprotected PrintsRendererServiceprintsRendererServiceprotected Class<E>printTypeprotected FiletargetDirectoryprotected StringtemplateDirectory -
Constructor Summary
Constructors Constructor Description AbstractPrintTest() -
Method Summary
Modifier and Type Method Description protected Map<String,Object>buildModel(E print)Create print data model from object passed.IFacadeBuildergetFacadeBuilder()protected StringgetPrintFileName()protected StringlookupTestName()protected CreatePdfResulttestCreatePDF(E params, BiConsumer<String,String>... verifications)Generate test print and validate it with verifications.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pl.matsuo.core.service.print.PrintMethods
addElements, initializeFacade, initializeFacade, initializePrint, initializePrint
-
Field Details
-
printType
-
printService
-
facadeBuilder
-
freeMarkerConfiguration
protected freemarker.template.Configuration freeMarkerConfiguration -
printsRendererService
-
templateDirectory
-
targetDirectory
-
-
Constructor Details
-
AbstractPrintTest
public AbstractPrintTest()
-
-
Method Details
-
buildModel
Create print data model from object passed. -
getPrintFileName
-
testCreatePDF
protected CreatePdfResult testCreatePDF(E params, BiConsumer<String,String>... verifications) throws ExceptionGenerate test print and validate it with verifications.- Throws:
Exception
-
lookupTestName
-
getFacadeBuilder
- Specified by:
getFacadeBuilderin interfacePrintMethods
-