Examples of MComponent


Examples of net.sourceforge.marathon.component.MComponent

    @Test
    public void testAssertingEnabled() {
        JTextField field = new JTextField();
        field.setBackground(Color.red);
        MComponent component = new MComponentMock(field, "foo");
        ComponentFinder resolver = ((MComponentMock) component).getDummyResolver();
        field.setEnabled(true);
        ActionTestCase.assertPasses(
                new AssertAction(new ComponentId("text.name"), AssertAction.ENABLED, ScriptModelServerPart.getModelServerPart(),
                        WindowMonitor.getInstance()), resolver);
View Full Code Here

Examples of net.sourceforge.marathon.component.MComponent

    @Test
    public void testCheckingColor() {
        JTextField field = new JTextField();
        field.setBackground(Color.red);
        MComponent component = new MComponentMock(field, "foo");
        AssertAction tag = new AssertAction(new ComponentId("foo"), Color.red, ScriptModelServerPart.getModelServerPart(),
                WindowMonitor.getInstance());
        tag.play(((MComponentMock) component).getDummyResolver());
        tag = new AssertAction(new ComponentId("foo"), Color.white, ScriptModelServerPart.getModelServerPart(),
                WindowMonitor.getInstance());
View Full Code Here

Examples of net.sourceforge.marathon.component.MComponent

    }

    public String[][] getCustomAssertions(Object o) {
        if (!(o instanceof MComponent))
            return new String[0][0];
        MComponent component = (MComponent) o;
        ArrayList<String[]> assertions = new ArrayList<String[]>();

        if (assertionProviderList == null)
            return null;
        for (String method : assertionProviderList) {
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.