Package org.eclipse.swtbot.swt.finder.utils

Examples of org.eclipse.swtbot.swt.finder.utils.TableCollection.columnCount()


  @Test
  public void getsSelectionCount() throws Exception {
    TableCollection selection = table.selection();
    assertEquals(new TableCollection(), selection);
    assertEquals(0, selection.columnCount());
    assertEquals(0, selection.rowCount());
    assertEquals(0, table.selectionCount());
  }

  @Test
View Full Code Here


  @Test
  public void getsSingleSelection() throws Exception {
    table.select(10);
    TableCollection selection = table.selection();
    assertEquals(1, selection.rowCount());
    assertEquals(4, selection.columnCount());
    assertEquals(new TableCollection().add(new TableRow(new String[] { "Index:10", "databases", "2556", "tomorrow" })), selection);
  }

  @Test
  public void findsAnyTable() throws Exception {
View Full Code Here

    bot.checkBox("Multiple Columns").select();
    tree = bot.treeInGroup("Tree");
    tree.select(2);
    TableCollection selection = tree.selection();
    assertEquals(1, selection.rowCount());
    assertEquals(4, selection.columnCount());
    assertEquals(new TableCollection().add(new TableRow(new String[] { "Node 3", "images", "91571", "yesterday" })), selection);
  }

  @Test
  public void findsAnyTree() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.