changeset 7386:65cabfa41abe

[TEST] RT-37752 Unit test failure in Snapshot1Test after fix for RT-17716
author Martin Sladecek <martin.sladecek@oracle.com>
date Mon, 30 Jun 2014 09:53:27 +0200
parents 73e79f23096b
children 030772161397
files tests/system/src/test/java/javafx/scene/Snapshot1Test.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/javafx/scene/Snapshot1Test.java	Sun Jun 29 14:37:50 2014 +0300
+++ b/tests/system/src/test/java/javafx/scene/Snapshot1Test.java	Mon Jun 30 09:53:27 2014 +0200
@@ -81,9 +81,9 @@
 
     // ========================== TEST CASES ==========================
 
-    // Verify that we cannot construct a Scene on a thread other than
+    // Verify that we can construct a Scene on a thread other than
     // the FX Application thread
-    @Test (expected=IllegalStateException.class)
+    @Test
     public void testConstructSceneWrongThread() {
         assertFalse(Platform.isFxApplicationThread());
 
@@ -91,6 +91,7 @@
 
         // The following should throw IllegalStateException
         tmpScene = new Scene(root);
+        assertNotNull(tmpScene);
     }
 
     // Verify that we can construct a graph of nodes on a thread other than