assertImageAgainstGoldenPixelPerfect
Captures the whole composition root and asserts it matches the stored golden image identified by goldenIdentifier pixel-for-pixel.
This is the strict counterpart of ComposeSwingTest.assertImageAgainstGolden: it admits no difference at all, rather than a structural-similarity tolerance. Use it for a scene rasterized by Java2D alone - shapes, fills, image filters - where an exact match holds on every host. A scene that renders text or look-and-feel chrome cannot hold to it, because the physical font a host resolves for a logical family remains its own choice.
Behaves identically to ComposeSwingTest.assertImageAgainstGolden for missing goldens, record mode, mismatch output and naming rules.
Parameters
identifies the golden image; allowed characters are letters, digits, '_' and '-'.
Throws
if any pixel of the captured image differs from the golden, or if the golden is missing while record mode is disabled.
if goldenIdentifier contains forbidden characters.
Asserts an already-captured image against the golden image identified by goldenIdentifier pixel-for-pixel. Use this when the image was produced by captureToImage and possibly post-processed before comparing.
Behaves identically to ComposeSwingTest.assertImageAgainstGoldenPixelPerfect for missing goldens, record mode, mismatch output and naming rules.
Parameters
the captured image to compare.
identifies the golden image; allowed characters are letters, digits, '_' and '-'.
Throws
if any pixel of image differs from the golden, or if the golden is missing while record mode is disabled.
if goldenIdentifier contains forbidden characters.
Captures the matched component and asserts it matches the stored golden image identified by goldenIdentifier pixel-for-pixel.
This is the strict counterpart of SwingNodeInteraction.assertImageAgainstGolden; see ComposeSwingTest.assertImageAgainstGoldenPixelPerfect for when an exact match holds.
Parameters
identifies the golden image; allowed characters are letters, digits, '_' and '-'.
Throws
if any pixel of the captured image differs from the golden, or if the golden is missing while record mode is disabled.
if goldenIdentifier contains forbidden characters.