# Class test.javafx.scene.Snapshot1Test

17 tests | 0 failures | 0 ignored | 3.991s duration
| 100% successful

- Tests
- Standard error

## Tests

Test | Duration | Result
--- | --- | ---
testBadNodeCallback1 | 0.205s | passed
testBadNodeCallback2 | 1.216s | passed
testBadSceneCallback1 | 0.205s | passed
testBadSceneCallback2 | 1.204s | passed
testConstructSceneWrongThread | 0.002s | passed
testCreateImageNonZero | 0.001s | passed
testCreateImageZero | 0.001s | passed
testNodeCallback | 0.202s | passed
testNodeImmediate | 0.105s | passed
testNullNodeCallback | 0.105s | passed
testNullSceneCallback | 0.104s | passed
testSceneCallback | 0.208s | passed
testSceneImmediate | 0.103s | passed
testSnapshotNodeDeferredWrongThread | 0.005s | passed
testSnapshotNodeImmediateWrongThread | 0.197s | passed
testSnapshotSceneDeferredWrongThread | 0.105s | passed
testSnapshotSceneImmediateWrongThread | 0.023s | passed

## Standard error

    testBadSceneCallback1: a ClassCastException warning message is expected here
    Exception in snapshot callback
    java.lang.ClassCastException: java.base/java.lang.String cannot be cast to java.base/java.lang.Void
    	at javafx.graphics/javafx.scene.Scene.lambda$snapshot$3(Scene.java:1552)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$1(Scene.java:1443)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$2(Scene.java:1442)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$0(Scene.java:1425)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$3(Toolkit.java:366)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:365)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:395)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:319)
    	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:189)
    	at java.base/java.lang.Thread.run(Thread.java:844)
    testBadSceneCallback2: a ClassCastException warning message is expected here
    Exception in snapshot callback
    java.lang.ClassCastException: javafx.graphics/javafx.scene.SnapshotResult cannot be cast to java.base/java.lang.String
    	at javafx.graphics/javafx.scene.Scene.lambda$snapshot$3(Scene.java:1552)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$1(Scene.java:1443)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$2(Scene.java:1442)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$0(Scene.java:1425)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$3(Toolkit.java:366)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:365)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:395)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:319)
    	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:189)
    	at java.base/java.lang.Thread.run(Thread.java:844)
    testBadNodeCallback1: a ClassCastException warning message is expected here
    Exception in snapshot callback
    java.lang.ClassCastException: java.base/java.lang.String cannot be cast to java.base/java.lang.Void
    	at javafx.graphics/javafx.scene.Node.lambda$snapshot$4(Node.java:2313)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$1(Scene.java:1443)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$2(Scene.java:1442)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$0(Scene.java:1425)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$3(Toolkit.java:366)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:365)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:395)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:319)
    	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:189)
    	at java.base/java.lang.Thread.run(Thread.java:844)
    testBadNodeCallback2: a ClassCastException warning message is expected here
    Exception in snapshot callback
    java.lang.ClassCastException: javafx.graphics/javafx.scene.SnapshotResult cannot be cast to java.base/java.lang.String
    	at javafx.graphics/javafx.scene.Node.lambda$snapshot$4(Node.java:2313)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$1(Scene.java:1443)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$2(Scene.java:1442)
    	at javafx.graphics/javafx.scene.Scene.lambda$addSnapshotRunnable$0(Scene.java:1425)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$3(Toolkit.java:366)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:365)
    	at javafx.graphics/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:395)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
    	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:319)
    	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    	at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:189)
    	at java.base/java.lang.Thread.run(Thread.java:844)