Class PreconfiguredRenderingTest

All Implemented Interfaces:
Test
Direct Known Subclasses:
BERenderingTest, SamplesRenderingTest

public abstract class PreconfiguredRenderingTest extends SVGRenderingAccuracyTest
Convenience class for creating a SVGRenderingAccuracyTest with predefined rules for the various configuration parameters.
Version:
$Id: PreconfiguredRenderingTest.java 1804130 2017-08-04 14:41:11Z ssteiner $
  • Field Details

  • Constructor Details

    • PreconfiguredRenderingTest

      public PreconfiguredRenderingTest()
  • Method Details

    • setId

      public void setId(String id)
      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 AbstractTest
    • setFile

      public void setFile(String id)
    • getName

      public String getName()
      Make the name as simple as possible. For preconfigured SVG files, we use the test id, which is the relevant identifier for the test user.
      Specified by:
      getName in interface Test
      Overrides:
      getName in class AbstractRenderingAccuracyTest
    • buildSVGURL

      protected String buildSVGURL(String svgDir, String svgFile, String svgExt)
      Gives a chance to the subclass to prepend a prefix to the svgFile name. The svgURL is built as: getSVGURLPrefix() + svgDir + svgFile
    • getSVGURLPrefix

      protected abstract String getSVGURLPrefix()
    • 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
    • getRefImagePrefix

      protected abstract String getRefImagePrefix()
    • getRefImageSuffix

      protected abstract String getRefImageSuffix()
    • 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 + PNG_EXTENSION
    • getVariationPrefix

      protected abstract String getVariationPrefix()
    • getVariationSuffix

      protected abstract String getVariationSuffix()
    • getVariationPlatforms

      protected abstract String[] getVariationPlatforms()
    • 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 + PNG_EXTENSION
    • getSaveVariationPrefix

      protected abstract String getSaveVariationPrefix()
    • getSaveVariationSuffix

      protected abstract String getSaveVariationSuffix()
    • 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: getCandidatereferencePrefix() + svgDir + getCandidatereferenceSuffix() + svgFile + PNG_EXTENSION
    • getCandidateReferencePrefix

      protected abstract String getCandidateReferencePrefix()
    • getCandidateReferenceSuffix

      protected abstract String getCandidateReferenceSuffix()
    • breakSVGFile

      protected String[] breakSVGFile(String svgFile)