changeset 2285:580420b7aeb4

Fix for RT-26569: forgotten unit test
author Lubomir Nerad <lubomir.nerad@oracle.com>
date Fri, 18 Jan 2013 16:05:36 +0100
parents 47b0cab71774
children e1921b721aa0 d67bf0b88354
files javafx-ui-common/test/unit/javafx/scene/ParentTest.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/test/unit/javafx/scene/ParentTest.java	Fri Jan 18 11:23:06 2013 +0100
+++ b/javafx-ui-common/test/unit/javafx/scene/ParentTest.java	Fri Jan 18 16:05:36 2013 +0100
@@ -371,6 +371,12 @@
         g.getChildren().add(null);
     }
 
+    @Test(expected=NullPointerException.class)
+    public void testNullCheckIsDoneBeforeTestForDuplicates() {
+        Group g = new Group();
+        g.getChildren().addAll(null, new Rectangle(), null);
+    }
+
     @Test(expected=IllegalArgumentException.class)
     public void testAddingClipNodeTwice() {
         Group g = new Group();