Examples of requireText()


Examples of org.fest.swing.fixture.JButtonFixture.requireText()

        String name = mapContent.getCoordinateReferenceSystem().getName().getCode();
       
        JButtonFixture button = windowFixture.button();
        assertNotNull(button);
       
        button.requireText(name);
    }
}
View Full Code Here

Examples of org.fest.swing.fixture.JLabelFixture.requireText()

    ((ValueModel)view).clearModel();
   
    manifestation.updateFromFeed(data);
    JLabelFixture labelFixture = new Query().labelIn(fixture);
    labelFixture.requireText("1");
   
    JRadioButtonFixture buttonA = new Query().accessibleNameMatches("Alpha Value: ").radioButtonIn(fixture);
    buttonA.check();
    manifestation.updateFromFeed(data);
   
View Full Code Here

Examples of org.fest.swing.fixture.JLabelFixture.requireText()

        ((DialogFixture) windowFixture).requireModal();
        assertEquals("IllegalArgumentException", windowFixture.component().getTitle());
       
        JLabelFixture label = windowFixture.label();
        label.requireText(Pattern.compile(".*" + MSG + ".*"));
    }
   
    @Test
    public void showExceptionWithUserMessage() throws Exception {
        final String EXCEPTION_MSG = "Foo is not Bar";
View Full Code Here

Examples of org.fest.swing.fixture.JLabelFixture.requireText()

        showDialog(new IllegalArgumentException(EXCEPTION_MSG), USER_MSG);
       
        assertEquals("IllegalArgumentException", windowFixture.component().getTitle());
       
        JLabelFixture label = windowFixture.label();
        label.requireText(Pattern.compile(".*" + USER_MSG + ".*"));
    }
   
    @Test
    public void emptyUserMessage() throws Exception {
        final String EXCEPTION_MSG = "You should see this message";
View Full Code Here

Examples of org.fest.swing.fixture.JLabelFixture.requireText()

        showDialog(new IllegalArgumentException(EXCEPTION_MSG), USER_MSG);
       
        assertEquals("IllegalArgumentException", windowFixture.component().getTitle());
       
        JLabelFixture label = windowFixture.label();
        label.requireText(Pattern.compile(".*" + EXCEPTION_MSG + ".*"));
    }
   
    @Test(expected=IllegalArgumentException.class)
    public void nullExceptionArg() throws Exception {
        JExceptionReporter.showDialog(null);
View Full Code Here

Examples of org.fest.swing.fixture.JTextComponentFixture.requireText()

        // The text box should be editable and initially empty
        JTextComponentFixture textBox = windowFixture.textBox();
        assertNotNull(textBox);
        textBox.requireEditable();
        textBox.requireText("");

        // The list should have as many items as there are authority codes
        JListFixture list = windowFixture.list();
        assertNotNull(list);
        list.requireItemCount(CODES.size());
View Full Code Here

Examples of org.fest.swing.fixture.JTextComponentFixture.requireText()

    private void assertTextDisplayExact(JAboutDialog.Category cat, String expected) {
        windowFixture.list().clickItem(cat.toString());
        windowFixture.robot.waitForIdle();
       
        JTextComponentFixture textArea = getDialogTextArea();
        textArea.requireText(expected);
    }
   
    private void assertTextDisplayContains(JAboutDialog.Category cat, String[] expected) {
        windowFixture.list().clickItem(cat.toString());
        windowFixture.robot.waitForIdle();
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.