Package step.plugins.pdftest
Class PdfTestFunctionType
- java.lang.Object
-
- step.functions.type.AbstractFunctionType<PdfTestFunction>
-
- step.plugins.pdftest.PdfTestFunctionType
-
public class PdfTestFunctionType extends step.functions.type.AbstractFunctionType<PdfTestFunction>
-
-
Field Summary
Fields Modifier and Type Field Description protected ch.exense.commons.app.Configurationconfigurationprotected step.grid.filemanager.FileVersionIdhandlerJarprotected FilescenarioDir
-
Constructor Summary
Constructors Constructor Description PdfTestFunctionType(File scenarioDir, ch.exense.commons.app.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFileAsAttachment(step.functions.io.Input<?> input, File file, String attachmentName)voidbeforeFunctionCall(PdfTestFunction function, step.functions.io.Input<?> input, Map<String,String> properties)protected voidcheckFiles(File actualFile, File expectedFile)PdfTestFunctioncopyFunction(PdfTestFunction function)protected StringcreateScenarioFile(PdfTestFunction function)voiddeleteFunction(PdfTestFunction function)StringgetHandlerChain(PdfTestFunction function)step.grid.filemanager.FileVersionIdgetHandlerPackage(PdfTestFunction function)Map<String,String>getHandlerProperties(PdfTestFunction function)protected FilegetSessionDir(PdfTestFunction function)voidinit()PdfTestFunctionnewFunction()voidsetupFunction(PdfTestFunction function)PdfTestFunctionupdateFunction(PdfTestFunction function)protected voidupdateScenarioName(PdfTestFunction function)
-
-
-
Field Detail
-
handlerJar
protected step.grid.filemanager.FileVersionId handlerJar
-
scenarioDir
protected final File scenarioDir
-
configuration
protected final ch.exense.commons.app.Configuration configuration
-
-
Constructor Detail
-
PdfTestFunctionType
public PdfTestFunctionType(File scenarioDir, ch.exense.commons.app.Configuration configuration)
-
-
Method Detail
-
init
public void init()
- Overrides:
initin classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getHandlerChain
public String getHandlerChain(PdfTestFunction function)
- Specified by:
getHandlerChainin classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getHandlerPackage
public step.grid.filemanager.FileVersionId getHandlerPackage(PdfTestFunction function)
- Overrides:
getHandlerPackagein classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getHandlerProperties
public Map<String,String> getHandlerProperties(PdfTestFunction function)
- Specified by:
getHandlerPropertiesin classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
beforeFunctionCall
public void beforeFunctionCall(PdfTestFunction function, step.functions.io.Input<?> input, Map<String,String> properties) throws step.functions.type.FunctionExecutionException
- Overrides:
beforeFunctionCallin classstep.functions.type.AbstractFunctionType<PdfTestFunction>- Throws:
step.functions.type.FunctionExecutionException
-
checkFiles
protected void checkFiles(File actualFile, File expectedFile) throws step.functions.type.FunctionExecutionException
- Throws:
step.functions.type.FunctionExecutionException
-
addFileAsAttachment
protected void addFileAsAttachment(step.functions.io.Input<?> input, File file, String attachmentName)
-
newFunction
public PdfTestFunction newFunction()
- Specified by:
newFunctionin classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
setupFunction
public void setupFunction(PdfTestFunction function) throws step.functions.type.SetupFunctionException
- Overrides:
setupFunctionin classstep.functions.type.AbstractFunctionType<PdfTestFunction>- Throws:
step.functions.type.SetupFunctionException
-
createScenarioFile
protected String createScenarioFile(PdfTestFunction function) throws step.functions.type.SetupFunctionException
- Throws:
step.functions.type.SetupFunctionException
-
updateFunction
public PdfTestFunction updateFunction(PdfTestFunction function) throws step.functions.type.FunctionTypeException
- Overrides:
updateFunctionin classstep.functions.type.AbstractFunctionType<PdfTestFunction>- Throws:
step.functions.type.FunctionTypeException
-
updateScenarioName
protected void updateScenarioName(PdfTestFunction function) throws step.functions.type.FunctionTypeException
- Throws:
step.functions.type.FunctionTypeException
-
copyFunction
public PdfTestFunction copyFunction(PdfTestFunction function) throws step.functions.type.FunctionTypeException
- Overrides:
copyFunctionin classstep.functions.type.AbstractFunctionType<PdfTestFunction>- Throws:
step.functions.type.FunctionTypeException
-
deleteFunction
public void deleteFunction(PdfTestFunction function)
- Overrides:
deleteFunctionin classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getSessionDir
protected File getSessionDir(PdfTestFunction function)
-
-