Class ParametrizedRenderingAccuracyTest

All Implemented Interfaces:
Test
Direct Known Subclasses:
SVGAlternateStyleSheetRenderingAccuracyTest, SVGMediaRenderingAccuracyTest, SVGReferenceRenderingAccuracyTest, SVGTextContentRenderingAccuracyTest

public class ParametrizedRenderingAccuracyTest extends SamplesRenderingTest
Base class for tests which take an additional parameter in addition to the SVG file.
Version:
$Id: ParametrizedRenderingAccuracyTest.java 1804130 2017-08-04 14:41:11Z ssteiner $
  • Field Details

    • PARAMETER_SEPARATOR

      public static final char PARAMETER_SEPARATOR
      See Also:
    • parameter

      protected String parameter
      Parameter which was passed appended to the SVG file
  • Constructor Details

    • ParametrizedRenderingAccuracyTest

      public ParametrizedRenderingAccuracyTest()
      Constructor.
  • Method Details

    • getParameterSeparator

      public char getParameterSeparator()
    • setId

      public void setId(String id)
      Description copied from class: PreconfiguredRenderingTest
      For preconfigured tests, the configuration has to be derived from the test identifier. The identifier should characterize the SVG file to be tested.
      Specified by:
      setId in interface Test
      Overrides:
      setId in class PreconfiguredRenderingTest
    • buildRefImgURL

      protected String buildRefImgURL(String svgDir, String svgFile)
      Gives a chance to the subclass to control the construction of the reference PNG file from the svgFile name The refImgURL is built as: getRefImagePrefix() + svgDir + getRefImageSuffix() + svgFile
      Overrides:
      buildRefImgURL in class PreconfiguredRenderingTest
    • buildVariationURLs

      public String[] buildVariationURLs(String svgDir, String svgFile)
      Gives a chance to the subclass to control the construction of the variation URL, which is built as: getVariationPrefix() + svgDir + getVariationSuffix() + svgFile + parameter + PNG_EXTENSION
      Overrides:
      buildVariationURLs in class PreconfiguredRenderingTest
    • buildSaveVariationFile

      public String buildSaveVariationFile(String svgDir, String svgFile)
      Gives a chance to the subclass to control the construction of the saveVariation URL, which is built as: getSaveVariationPrefix() + svgDir + getSaveVariationSuffix() + svgFile + parameter + PNG_EXTENSION
      Overrides:
      buildSaveVariationFile in class PreconfiguredRenderingTest
    • buildCandidateReferenceFile

      public String buildCandidateReferenceFile(String svgDir, String svgFile)
      Gives a chance to the subclass to control the construction of the candidateReference URL, which is built as: getSaveVariationPrefix() + svgDir + getSaveVariationSuffix() + svgFile + parameter + PNG_EXTENSION
      Overrides:
      buildCandidateReferenceFile in class PreconfiguredRenderingTest