Package net.sourceforge.marathon.component

Examples of net.sourceforge.marathon.component.MTable


    }

    @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


    }

    public int getColumnCount(ComponentId id) {
        if(failMessage != null)
            failX(failMessage);
        MTable component = (MTable) finder.getMComponentById(id);
        return component.getColumnCount();
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.component.MTable

Copyright © 2018 www.massapicom. 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.