public class SVGRenderingAccuracyTestValidator extends DefaultTestSuite
SVGRenderingAccuracyTest
by forcing specific test case situations and checking that
they are handled properly by the class.Modifier and Type | Class and Description |
---|---|
(package private) static class |
SVGRenderingAccuracyTestValidator.AccurateRendering |
(package private) static class |
SVGRenderingAccuracyTestValidator.AccurateRenderingWithVariation
Validates that test passes if proper variation is given
|
(package private) static class |
SVGRenderingAccuracyTestValidator.DefaultConfigTest
Validates that the default parameters computation is
working as expected.
|
(package private) static class |
SVGRenderingAccuracyTestValidator.DifferentSizes |
(package private) static class |
SVGRenderingAccuracyTestValidator.InexistingReferenceImage
Creates an
SVGRenderingAccuracyTest with an
valid URL for the source SVG valid
URL for the reference image, but the reference image,
but the reference image does not exist |
(package private) static class |
SVGRenderingAccuracyTestValidator.InvalidReferenceImageURL
Creates an
SVGRenderingAccuracyTest with an
valid URL for the source SVG but with an invalid
URL for the reference image. |
(package private) static class |
SVGRenderingAccuracyTestValidator.InvalidSVGContent
Creates an
SVGRenderingAccuracyTest with a
valid URL pointing to an invalid SVG document. |
(package private) static class |
SVGRenderingAccuracyTestValidator.InvalidSVGURL
Creates an
SVGRenderingAccuracyTest with an
invalid URL for the source SVG. |
(package private) static class |
SVGRenderingAccuracyTestValidator.SameSizeDifferentContent |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
invalidSVG
Simple invalid SVG content used for this test
(the error is that a double quote is missing at the
end of the width attribute value.
|
private static java.lang.String |
validRedSVG
Simple valid SVG content used for this test, red rectangle
|
private static java.lang.String |
validSmallSVG
Simple valid SVG content used for this test, small size
|
private static java.lang.String |
validSVG
Simple valid SVG content used for this test
|
private static java.lang.String |
validSVGVariation
Simple valid SVG content used for this test
|
tests
id, parent
Constructor and Description |
---|
SVGRenderingAccuracyTestValidator()
This test creates a sample SVG file dynamically and
valides that errors are generated for the
following cases:
+ invalid SVG URL
+ corrupted SVG image (i.e., cannot be transcoded to
an image).
|
Modifier and Type | Method and Description |
---|---|
static java.net.URL |
createSVGSourceURL(java.lang.String svgContent)
Creates a SVG source URL for the given svg content
|
static java.net.URL |
createValidReferenceImage(java.lang.String svgContent)
Helper method: creates a valid reference image
|
addTest, getChildrenCount, getChildrenTests, getName, removeTest, runImpl, setName
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParent
private static final java.lang.String validSVG
private static final java.lang.String validSVGVariation
private static final java.lang.String validSmallSVG
private static final java.lang.String validRedSVG
private static final java.lang.String invalidSVG
public SVGRenderingAccuracyTestValidator()
public static java.net.URL createSVGSourceURL(java.lang.String svgContent) throws java.lang.Exception
java.lang.Exception
public static java.net.URL createValidReferenceImage(java.lang.String svgContent) throws java.lang.Exception
java.lang.Exception