Package step.plugins.compare
Class ImageCompareFunctionHandler
- java.lang.Object
-
- step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
- step.functions.handler.JsonBasedFunctionHandler
-
- step.plugins.compare.AbstractCompareFunctionHandler
-
- step.plugins.compare.ImageCompareFunctionHandler
-
public class ImageCompareFunctionHandler extends AbstractCompareFunctionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPARE_ACTUAL_FILE
static String
COMPARE_EXPECTED_FILE
static String
COMPARE_KW_NAME
static String
COMPARE_SCENARIO_DIR_FILE
static String
COMPARE_WORKING_DIR_DEFAULT
static String
COMPARE_WORKING_DIR_PROP
static String
DEFAULT_LANGUAGE_OPTION
static String
SUPPORTED_LANGUAGES_OPTION
-
Fields inherited from class step.plugins.compare.AbstractCompareFunctionHandler
ACTUAL, ACTUAL_FILE_ON_AGENT, compareScenarioServices, DEFAULT_LINE_HEIGHT, EXPECTED, EXPECTED_FILE_ON_AGENT, LINE_HEIGHT_PROP
-
-
Constructor Summary
Constructors Constructor Description ImageCompareFunctionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compareInitialize()
String
getActualFileName()
protected AbstractDocumentToImageService
getDocToImageService()
String
getExpectedFileName()
protected AbstractExtractionService
getExtractionService(Map<String,String> props)
protected String
getKeywordName()
protected String
getScenarioDirProperty()
protected String
getWorkingDirPath()
-
Methods inherited from class step.plugins.compare.AbstractCompareFunctionHandler
getWorkingDir, handle, initialize, readAttachment
-
Methods inherited from class step.functions.handler.JsonBasedFunctionHandler
getInputPayloadClass, getOutputPayloadClass
-
Methods inherited from class step.functions.handler.AbstractFunctionHandler
delegate, delegate, getCurrentContext, getCurrentContext, getFileVersionId, getFunctionHandlerFactory, getProperties, getTokenReservationSession, getTokenSession, mergeAllProperties, pushLocalApplicationContext, pushLocalApplicationContext, pushLocalFolderApplicationContext, pushLocalFolderApplicationContext, pushRemoteApplicationContext, pushRemoteApplicationContext, retrieveFileVersion, runInContext, runInContext, setApplicationContextBuilder, setFileManagerClient, setFunctionHandlerFactory, setProperties, setTokenReservationSession, setTokenSession
-
-
-
-
Field Detail
-
COMPARE_KW_NAME
public static final String COMPARE_KW_NAME
- See Also:
- Constant Field Values
-
COMPARE_SCENARIO_DIR_FILE
public static final String COMPARE_SCENARIO_DIR_FILE
- See Also:
- Constant Field Values
-
COMPARE_WORKING_DIR_PROP
public static final String COMPARE_WORKING_DIR_PROP
- See Also:
- Constant Field Values
-
COMPARE_WORKING_DIR_DEFAULT
public static final String COMPARE_WORKING_DIR_DEFAULT
- See Also:
- Constant Field Values
-
COMPARE_EXPECTED_FILE
public static final String COMPARE_EXPECTED_FILE
- See Also:
- Constant Field Values
-
COMPARE_ACTUAL_FILE
public static final String COMPARE_ACTUAL_FILE
- See Also:
- Constant Field Values
-
SUPPORTED_LANGUAGES_OPTION
public static final String SUPPORTED_LANGUAGES_OPTION
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE_OPTION
public static final String DEFAULT_LANGUAGE_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScenarioDirProperty
protected String getScenarioDirProperty()
- Specified by:
getScenarioDirProperty
in classAbstractCompareFunctionHandler
-
getKeywordName
protected String getKeywordName()
- Specified by:
getKeywordName
in classAbstractCompareFunctionHandler
-
getDocToImageService
protected AbstractDocumentToImageService getDocToImageService()
- Specified by:
getDocToImageService
in classAbstractCompareFunctionHandler
-
getExtractionService
protected AbstractExtractionService getExtractionService(Map<String,String> props)
- Specified by:
getExtractionService
in classAbstractCompareFunctionHandler
-
getActualFileName
public String getActualFileName()
- Specified by:
getActualFileName
in classAbstractCompareFunctionHandler
-
getExpectedFileName
public String getExpectedFileName()
- Specified by:
getExpectedFileName
in classAbstractCompareFunctionHandler
-
getWorkingDirPath
protected String getWorkingDirPath()
- Specified by:
getWorkingDirPath
in classAbstractCompareFunctionHandler
-
compareInitialize
protected void compareInitialize()
- Specified by:
compareInitialize
in classAbstractCompareFunctionHandler
-
-