6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.effect;
27
28 import static org.junit.Assert.assertEquals;
29 import static org.junit.Assert.assertTrue;
30 import static org.junit.Assert.fail;
31
32 import java.lang.reflect.InvocationTargetException;
33 import java.lang.reflect.Method;
34 import java.util.ArrayList;
35 import java.util.Collection;
36 import java.util.List;
37
38 import javafx.beans.property.ObjectProperty;
39 import javafx.beans.property.SimpleObjectProperty;
40 import javafx.scene.Group;
41 import javafx.scene.Node;
42 import javafx.scene.Scene;
43 import javafx.scene.shape.Rectangle;
44 import javafx.stage.Stage;
45
46 import org.junit.Test;
47 import org.junit.runner.RunWith;
48 import org.junit.runners.Parameterized;
49 import org.junit.runners.Parameterized.Parameters;
50
51 import com.sun.javafx.pgstub.StubToolkit;
52 import com.sun.javafx.tk.Toolkit;
53
54 @RunWith(Parameterized.class)
55 public class EffectInputTest {
56 private String effect1Name = null;
57 private String effect2Name = null;
58 private Node n = null;
59
60 final static String[] effects = new String[] {
61 "Bloom", "BoxBlur", "ColorAdjust", "DisplacementMap",
62 "DropShadow", "GaussianBlur", "Glow", "InnerShadow",
63 "MotionBlur", "PerspectiveTransform",
64 "Reflection", "SepiaTone", "Shadow"
65 };
66
67 @Parameters
68 public static Collection parameters() {
69 List list = new ArrayList();
70 for (int i = 0; i < effects.length; i++) {
71 for (int j = i; j < effects.length; j++) {
72 list.add(new String[] { effects[i], effects[j] });
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package test.javafx.scene.effect;
27
28 import static org.junit.Assert.assertEquals;
29 import static org.junit.Assert.assertTrue;
30 import static org.junit.Assert.fail;
31
32 import java.lang.reflect.InvocationTargetException;
33 import java.lang.reflect.Method;
34 import java.util.ArrayList;
35 import java.util.Collection;
36 import java.util.List;
37
38 import javafx.beans.property.ObjectProperty;
39 import javafx.beans.property.SimpleObjectProperty;
40 import javafx.scene.Group;
41 import javafx.scene.Node;
42 import javafx.scene.Scene;
43 import javafx.scene.shape.Rectangle;
44 import javafx.stage.Stage;
45
46 import org.junit.Test;
47 import org.junit.runner.RunWith;
48 import org.junit.runners.Parameterized;
49 import org.junit.runners.Parameterized.Parameters;
50
51 import test.com.sun.javafx.pgstub.StubToolkit;
52 import com.sun.javafx.tk.Toolkit;
53 import javafx.scene.effect.Effect;
54
55 @RunWith(Parameterized.class)
56 public class EffectInputTest {
57 private String effect1Name = null;
58 private String effect2Name = null;
59 private Node n = null;
60
61 final static String[] effects = new String[] {
62 "Bloom", "BoxBlur", "ColorAdjust", "DisplacementMap",
63 "DropShadow", "GaussianBlur", "Glow", "InnerShadow",
64 "MotionBlur", "PerspectiveTransform",
65 "Reflection", "SepiaTone", "Shadow"
66 };
67
68 @Parameters
69 public static Collection parameters() {
70 List list = new ArrayList();
71 for (int i = 0; i < effects.length; i++) {
72 for (int j = i; j < effects.length; j++) {
73 list.add(new String[] { effects[i], effects[j] });
|