@Transactional
@ContextConfiguration(classes={pl.matsuo.core.conf.DbConfig.class,pl.matsuo.core.test.data.TestSessionState.class,ExecutionServiceImpl.class,TestDataExecutionConfig.class,UserTestData.class})
public abstract class AbstractReportTest<E>
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Database |
database |
protected FacadeBuilder |
facadeBuilder |
protected freemarker.template.Configuration |
freeMarkerConfiguration |
protected PrintsRendererService |
printsRendererService |
protected IReportService<E> |
reportService |
protected SessionState |
sessionState |
protected File |
targetDirectory |
protected String |
templateDirectory |
| Constructor and Description |
|---|
AbstractReportTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
buildModel(E params)
Create print data model from object passed.
|
IFacadeBuilder |
getFacadeBuilder() |
protected abstract String |
getPrintFileName() |
protected String |
lookupTestName() |
void |
setupSessionState() |
protected CreatePdfResult |
testCreatePDF(E params,
BiConsumer<String,String>... verifications)
Generate test print and validate it with verifications.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddElements, initializeFacade, initializeFacade, initializePrint, initializePrint@Autowired protected SessionState sessionState
@Autowired protected Database database
@Autowired protected IReportService<E> reportService
@Autowired protected FacadeBuilder facadeBuilder
protected freemarker.template.Configuration freeMarkerConfiguration
protected PrintsRendererService printsRendererService
protected String templateDirectory
protected File targetDirectory
protected Map<String,Object> buildModel(E params)
public void setupSessionState()
protected CreatePdfResult testCreatePDF(E params, BiConsumer<String,String>... verifications) throws Exception
Exceptionprotected String lookupTestName()
protected abstract String getPrintFileName()
public IFacadeBuilder getFacadeBuilder()
getFacadeBuilder in interface PrintMethodsCopyright © 2015 Matsuo IT. All rights reserved.