Class PdfTestFunctionType


  • public class PdfTestFunctionType
    extends step.functions.type.AbstractFunctionType<PdfTestFunction>
    • 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 class step.functions.type.AbstractFunctionType<PdfTestFunction>
      • getHandlerPackage

        public step.grid.filemanager.FileVersionId getHandlerPackage​(PdfTestFunction function)
        Overrides:
        getHandlerPackage in class step.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 class step.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)
      • setupFunction

        public void setupFunction​(PdfTestFunction function)
                           throws step.functions.type.SetupFunctionException
        Overrides:
        setupFunction in class step.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 class step.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 class step.functions.type.AbstractFunctionType<PdfTestFunction>
        Throws:
        step.functions.type.FunctionTypeException
      • deleteFunction

        public void deleteFunction​(PdfTestFunction function)
        Overrides:
        deleteFunction in class step.functions.type.AbstractFunctionType<PdfTestFunction>