modules/controls/src/test/java/javafx/scene/control/TreeTableViewMouseInputTest.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization


   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.control;
  27 
  28 import com.sun.javafx.PlatformUtil;
  29 import com.sun.javafx.util.Utils;
  30 import com.sun.javafx.scene.control.behavior.TreeTableViewAnchorRetriever;
  31 import com.sun.javafx.scene.control.infrastructure.*;
  32 import com.sun.javafx.scene.control.skin.TreeTableViewSkin;
  33 import com.sun.javafx.scene.control.test.Person;
  34 
  35 import static org.junit.Assert.*;
  36 
  37 import java.util.List;
  38 
  39 import com.sun.javafx.tk.Toolkit;
  40 import javafx.beans.value.ChangeListener;
  41 import javafx.beans.value.ObservableValue;
  42 import javafx.collections.FXCollections;
  43 import javafx.collections.ListChangeListener;
  44 import javafx.collections.ObservableList;
  45 import javafx.scene.Group;
  46 import javafx.scene.Node;
  47 import javafx.scene.Scene;
  48 import javafx.scene.control.cell.PropertyValueFactory;
  49 import javafx.scene.control.cell.TreeItemPropertyValueFactory;
  50 import javafx.scene.input.KeyCode;
  51 
  52 import javafx.scene.layout.StackPane;
  53 import javafx.scene.layout.VBox;
  54 import javafx.stage.Stage;
  55 import org.junit.After;
  56 
  57 import org.junit.Before;
  58 import org.junit.Ignore;
  59 import org.junit.Test;
  60 
  61 //@Ignore("Disabling tests as they fail with OOM in continuous builds")
  62 public class TreeTableViewMouseInputTest {
  63     private TreeTableView<String> tableView;
  64     private TreeTableView.TreeTableViewSelectionModel<?> sm;
  65     private TreeTableView.TreeTableViewFocusModel<?> fm;
  66     
  67     private final TreeTableColumn<String, String> col0 = new TreeTableColumn<String, String>("col0");
  68     private final TreeTableColumn<String, String> col1 = new TreeTableColumn<String, String>("col1");
  69     private final TreeTableColumn<String, String> col2 = new TreeTableColumn<String, String>("col2");
  70     private final TreeTableColumn<String, String> col3 = new TreeTableColumn<String, String>("col3");
  71     private final TreeTableColumn<String, String> col4 = new TreeTableColumn<String, String>("col4");
  72 
  73     private TreeItem<String> root;                  // 0
  74     private TreeItem<String> child1;            // 1




   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.control;
  27 


  28 import com.sun.javafx.scene.control.behavior.TreeTableViewAnchorRetriever;
  29 import com.sun.javafx.scene.control.infrastructure.*;

  30 import com.sun.javafx.scene.control.test.Person;
  31 
  32 import static org.junit.Assert.*;
  33 


  34 import com.sun.javafx.tk.Toolkit;


  35 import javafx.collections.FXCollections;
  36 import javafx.collections.ListChangeListener;
  37 import javafx.collections.ObservableList;

  38 import javafx.scene.Node;
  39 import javafx.scene.Scene;

  40 import javafx.scene.control.cell.TreeItemPropertyValueFactory;

  41 

  42 import javafx.scene.layout.VBox;

  43 import org.junit.After;
  44 
  45 import org.junit.Before;
  46 import org.junit.Ignore;
  47 import org.junit.Test;
  48 
  49 //@Ignore("Disabling tests as they fail with OOM in continuous builds")
  50 public class TreeTableViewMouseInputTest {
  51     private TreeTableView<String> tableView;
  52     private TreeTableView.TreeTableViewSelectionModel<?> sm;
  53     private TreeTableView.TreeTableViewFocusModel<?> fm;
  54     
  55     private final TreeTableColumn<String, String> col0 = new TreeTableColumn<String, String>("col0");
  56     private final TreeTableColumn<String, String> col1 = new TreeTableColumn<String, String>("col1");
  57     private final TreeTableColumn<String, String> col2 = new TreeTableColumn<String, String>("col2");
  58     private final TreeTableColumn<String, String> col3 = new TreeTableColumn<String, String>("col3");
  59     private final TreeTableColumn<String, String> col4 = new TreeTableColumn<String, String>("col4");
  60 
  61     private TreeItem<String> root;                  // 0
  62     private TreeItem<String> child1;            // 1