Package com.dooapp.fxform.model

Examples of com.dooapp.fxform.model.PropertyElementFactory.create()


    }

    @Test
    public void testElementFactory() throws NoSuchFieldException, FormException {
        PropertyElementFactory tested = new PropertyElementFactory();
        Element methodElement = tested.create(MethodTestBean.class.getDeclaredField("name"));
        Element fieldElement = tested.create(FieldTestBean.class.getDeclaredField("name"));
        Assert.assertEquals(PropertyMethodElement.class, methodElement.getClass());
        Assert.assertEquals(PropertyFieldElement.class, fieldElement.getClass());
    }
View Full Code Here


    @Test
    public void testElementFactory() throws NoSuchFieldException, FormException {
        PropertyElementFactory tested = new PropertyElementFactory();
        Element methodElement = tested.create(MethodTestBean.class.getDeclaredField("name"));
        Element fieldElement = tested.create(FieldTestBean.class.getDeclaredField("name"));
        Assert.assertEquals(PropertyMethodElement.class, methodElement.getClass());
        Assert.assertEquals(PropertyFieldElement.class, fieldElement.getClass());
    }

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.