Package-level declarations
Functions
Captures the whole composition root and asserts it matches the stored golden image identified by goldenIdentifier.
Captures the matched component and asserts it matches the stored golden image identified by goldenIdentifier, failing the test on a visual difference.
Asserts an already-captured image against the golden image identified by goldenIdentifier. Use this when the image was produced by captureToImage and possibly post-processed before comparing.
Captures the matched component and asserts it matches expected by structural similarity at threshold, without involving any golden file.
Asserts image matches expected pixel-for-pixel, allowing at most maxDifferentPixels differing pixels (default 0, i.e. byte-exact). Use this to prove two independently rendered components rasterize identically, where the tolerance of assertImageMatches would miss a stray border, margin or alignment shift.
Renders an arbitrary, hand-built raw AWT/Swing component to an off-screen image, independently of any composition.
Renders the whole composition root, together with everything drawn inside it, to an off-screen image. Equivalent to capturing the node returned by ComposeSwingTest.onRoot.
Renders the matched component, together with everything drawn inside it, to an off-screen image.
Renders each matched component to its own off-screen image, in depth-first pre-order.