Package com.dooapp.fxform

Examples of com.dooapp.fxform.TestBean


  }

  @Test
  public void testMultipleBeanSource() throws IllegalArgumentException {
    FXForm fxForm = new FXForm();
    fxForm.setSource(new MultipleBeanSource(new TestBean(), new TestBean2()));
    Assert.assertEquals(5, fxForm.getElements().size());
    Assert.assertTrue(hasElement(fxForm.getElements(), "propInBean2"));
    Assert.assertTrue(hasElement(fxForm.getElements(), "stringProperty"));
    Assert.assertTrue(hasElement(fxForm.getElements(), "booleanProperty"));
    Assert.assertTrue(hasElement(fxForm.getElements(), "doubleProperty"));
View Full Code Here


public class ReflectionFieldProviderTest {

    @Test
    public void testGetProperties() throws Exception {
        ReflectionFieldProvider reflectionFieldProvider = new ReflectionFieldProvider();
        TestBean testBean = new TestBean();
        List<Field> fields = reflectionFieldProvider.getProperties(testBean);
        List<Element> elements = new LinkedList<Element>();
        for (Field field: fields) {
            elements.add(new ReadOnlyPropertyFieldElement(field));
        }
View Full Code Here

    @Test
    public void testIssue8() {
        FXForm fxForm = new FXForm();
        fxForm.setSkin(FXFormSkinFactory.INLINE_FACTORY.createSkin(fxForm));
        fxForm.setSource(new TestBean());
        fxForm.getFilters().add(new ExcludeFilter("stringProperty", "objectProperty"));
        fxForm.setSource(null);
        org.junit.Assert.assertEquals(0, fxForm.getElements().size());
    }
View Full Code Here

    @Test
    public void testIssue6() {
        FXForm readOnlyFXForm = new ReadOnlyFXForm();
        readOnlyFXForm.setSource(null);
        readOnlyFXForm.setSource(new TestBean());
        readOnlyFXForm.setSource(null);
        readOnlyFXForm.setSource(new TestBean());
    }
View Full Code Here

public class Issue7Test {

    @Test
    public void testIssue7() {
        FXForm fxForm = new FXForm();
        fxForm.setSource(new TestBean());
        fxForm.setSkin(FXFormSkinFactory.INLINE_FACTORY.createSkin(fxForm));
        fxForm.setSource(null);
        org.junit.Assert.assertEquals(0, fxForm.getElements().size());
    }
View Full Code Here

TOP

Related Classes of com.dooapp.fxform.TestBean

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.