Package net.sourceforge.marathon.objectmap

Examples of net.sourceforge.marathon.objectmap.ObjectMapNamingStrategy


        dialog.getLabel().setLabelFor(dialog.getTextField());
        assertEquals("This is a label", wrapperTextField.getLabeledBy());
    }

    @Test public void testGetPrecedingLabel() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog.getComboBox());
        assertEquals(wrapper.getPrecedingLabel(), "This is a label");
    }
View Full Code Here


        MComponent wrapper = findPropertyWrapper(dialog.getComboBox());
        assertEquals(wrapper.getPrecedingLabel(), "This is a label");
    }

    @Test public void testGetIndexInParent() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals(wrapper.getIndexInParent(), 3);
    }
View Full Code Here

        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals(wrapper.getIndexInParent(), 3);
    }

    @Test public void testGetIndexInContainer() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals(wrapper.getIndexInContainer(), 12);
    }
View Full Code Here

        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals(wrapper.getIndexInContainer(), 12);
    }

    @Test public void testGetLayoutData() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals("Hello World", wrapper.getLayoutData());
    }
View Full Code Here

        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals("Hello World", wrapper.getLayoutData());
    }

    @Test public void testGetOMapClassName() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog);
        assertEquals("net.sourceforge.marathon.DialogForTesting", wrapper.getOMapClassName());
    }
View Full Code Here

        MComponent wrapper = findPropertyWrapper(dialog);
        assertEquals("net.sourceforge.marathon.DialogForTesting", wrapper.getOMapClassName());
    }

    @Test public void testGetOMapClassSimpleName() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog);
        assertEquals("DialogForTesting", wrapper.getOMapClassSimpleName());
    }
View Full Code Here

    @Test public void testGetInstanceOf() {
        assertEquals("javax.swing.JTextField", wrapperTextField.getInstanceOf());
    }

    @Test public void testGetFieldName() {
        ObjectMapNamingStrategy strategy = new ObjectMapNamingStrategy();
        strategy.init();
        strategy.setTopLevelComponent(dialog, true);
        MComponent wrapper = findPropertyWrapper(dialog.getTextField());
        assertEquals ("textField", wrapper.getFieldName());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.objectmap.ObjectMapNamingStrategy

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.