Examples of DummyResolver


Examples of net.sourceforge.marathon.component.DummyResolver

    @Test
    public void testAssertColumnCount() {
        JTable table = new JTable(1, 3);
        MComponent component = new MTable(table, "table", null, WindowMonitor.getInstance());
        ComponentFinder resolver = new DummyResolver(component);
        ActionTestCase.assertPasses(
                new AssertColumnCount(ID, 3, ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), resolver);
        ActionTestCase.assertFails(
                new AssertColumnCount(ID, 4, ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), resolver);
    }
View Full Code Here

Examples of net.sourceforge.marathon.component.DummyResolver

        Object[] data = new Object[] { "a", "b", "c", "d", "e" };
        JList list = new JList(data);
        MCollectionComponent component = new MList(list, "JList", new ComponentFinder(Boolean.FALSE,
                WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(),
                ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), WindowMonitor.getInstance());
        ComponentFinder resolver = new DummyResolver(component);
        ActionTestCase.assertPasses(
                new AssertContent(ID, new String[][] { { "a", "b", "c", "d", "e" } }, ScriptModelServerPart.getModelServerPart(),
                        WindowMonitor.getInstance()), resolver);
        ActionTestCase.assertFails(
                new AssertContent(ID, new String[][] { { "a", "b", "c", "d" } }, ScriptModelServerPart.getModelServerPart(),
View Full Code Here

Examples of net.sourceforge.marathon.component.DummyResolver

    @Test
    public void testAssertRowCount() {
        JComboBox box = new JComboBox(new Object[] { o, o, o });
        MComboBox component = new MComboBox(box, "box", null, WindowMonitor.getInstance());
        ComponentFinder resolver = new DummyResolver(component);
        ActionTestCase.assertPasses(
                new AssertRowCount(ID, 3, ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), resolver);
        ActionTestCase.assertFails(
                new AssertRowCount(ID, 4, ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), resolver);
    }
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.