Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.JListFixture.contents()


  @Test
  public void testRemoveColli() {
    dialogFixture.requireVisible();
    dialogFixture.button("ButtonRemoveColli").requireDisabled();
    JListFixture listFixture = dialogFixture.list("ListCollies");
    String[] content = listFixture.contents();
    int size = content.length;
    newColliName = "kolli_" + (size + 1);
    dialogFixture.button("ButtonAddColli").click();

    DialogFixture optionDialog = WindowFinder.findDialog("Kollioppsett")
View Full Code Here


        windowFixture.robot.waitForIdle();

        // Note: there may be more than one list item if the code
        // we just typed is also the start of longer codes or if the
        // code string happens to appear in descriptive text
        String[] items = list.contents();
        for (String item : items) {
            assertTrue(item.toLowerCase().contains(code));
        }
    }
View Full Code Here

        // Filter on the first few characters
        windowFixture.textBox().enterText(filterStr);
        windowFixture.robot.waitForIdle();

        // Check list contents
        for (String item : list.contents()) {
            assertTrue(item.toLowerCase().contains(filterStr));
        }
    }

    @Test
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.