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.Configuration
configuration
protected step.grid.filemanager.FileVersionId
handlerJar
protected File
scenarioDir
-
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 void
addFileAsAttachment(step.functions.io.Input<?> input, File file, String attachmentName)
void
beforeFunctionCall(PdfTestFunction function, step.functions.io.Input<?> input, Map<String,String> properties)
protected void
checkFiles(File actualFile, File expectedFile)
PdfTestFunction
copyFunction(PdfTestFunction function)
protected String
createScenarioFile(PdfTestFunction function)
void
deleteFunction(PdfTestFunction function)
String
getHandlerChain(PdfTestFunction function)
step.grid.filemanager.FileVersionId
getHandlerPackage(PdfTestFunction function)
Map<String,String>
getHandlerProperties(PdfTestFunction function)
protected File
getSessionDir(PdfTestFunction function)
void
init()
PdfTestFunction
newFunction()
void
setupFunction(PdfTestFunction function)
PdfTestFunction
updateFunction(PdfTestFunction function)
protected void
updateScenarioName(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:
init
in classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getHandlerChain
public String getHandlerChain(PdfTestFunction function)
- Specified by:
getHandlerChain
in classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getHandlerPackage
public step.grid.filemanager.FileVersionId getHandlerPackage(PdfTestFunction function)
- Overrides:
getHandlerPackage
in classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getHandlerProperties
public Map<String,String> getHandlerProperties(PdfTestFunction function)
- Specified by:
getHandlerProperties
in 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:
beforeFunctionCall
in 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:
newFunction
in classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
setupFunction
public void setupFunction(PdfTestFunction function) throws step.functions.type.SetupFunctionException
- Overrides:
setupFunction
in 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:
updateFunction
in 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:
copyFunction
in classstep.functions.type.AbstractFunctionType<PdfTestFunction>
- Throws:
step.functions.type.FunctionTypeException
-
deleteFunction
public void deleteFunction(PdfTestFunction function)
- Overrides:
deleteFunction
in classstep.functions.type.AbstractFunctionType<PdfTestFunction>
-
getSessionDir
protected File getSessionDir(PdfTestFunction function)
-
-