5 * This code is free software; you can redistribute it and/or modify it
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 package com.sun.javafx.collections;
26
27 import java.util.Arrays;
28 import java.util.Collections;
29 import java.util.List;
30 import javafx.collections.FXCollections;
31 import javafx.collections.ListChangeListener.Change;
32 import javafx.collections.ObservableList;
33 import org.junit.Before;
34 import org.junit.Test;
35 import static org.junit.Assert.*;
36
37 public class MappingChangeTest {
38
39 ObservableList<Integer> originalList;
40 ObservableList<String> list;
41
42 @Before
43 public void setUp() {
44 originalList = FXCollections.observableArrayList(1, 2, 3, 4, 5);
45 list = FXCollections.observableArrayList("1", "2", "3", "4", "5");
46 }
|
5 * This code is free software; you can redistribute it and/or modify it
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 package test.com.sun.javafx.collections;
26
27 import com.sun.javafx.collections.MappingChange;
28 import com.sun.javafx.collections.NonIterableChange;
29 import java.util.Arrays;
30 import java.util.Collections;
31 import java.util.List;
32 import javafx.collections.FXCollections;
33 import javafx.collections.ListChangeListener.Change;
34 import javafx.collections.ObservableList;
35 import org.junit.Before;
36 import org.junit.Test;
37 import static org.junit.Assert.*;
38
39 public class MappingChangeTest {
40
41 ObservableList<Integer> originalList;
42 ObservableList<String> list;
43
44 @Before
45 public void setUp() {
46 originalList = FXCollections.observableArrayList(1, 2, 3, 4, 5);
47 list = FXCollections.observableArrayList("1", "2", "3", "4", "5");
48 }
|