Examples of listInGroup()


Examples of org.eclipse.swtbot.swt.finder.SWTBot.listInGroup()

  }

  @Test
  public void throwsExceptionInCaseOfInvalidIndexBasedSelection() throws Exception {
    SWTBot bot = new SWTBot();
    SWTBotList list = bot.listInGroup("List");
    try {
      list.select(100);
      fail("Was expecting an exception");
    } catch (RuntimeException e) {
      assertEquals("assertion failed: The index (100) is more than the number of items (9) in the list.", e.getMessage());
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.SWTBot.listInGroup()

  }

  @Test
  public void throwsExceptionInCaseOfInvalidTextBasedSelection() throws Exception {
    SWTBot bot = new SWTBot();
    SWTBotList list = bot.listInGroup("List");
    try {
      list.select("non existent item");
      fail("Was expecting an exception");
    } catch (RuntimeException e) {
      assertEquals("assertion failed: Item `non existent item' not found in list.", e.getMessage());
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.