Package com.google.gwt.editor.client.SimpleBeanEditorTest

Examples of com.google.gwt.editor.client.SimpleBeanEditorTest.PersonEditorWithOptionalAddressDriver


    person.address = null;

    AddressEditor addressEditor = new AddressEditor();
    PersonEditorWithOptionalAddressEditor editor =
        new PersonEditorWithOptionalAddressEditor(addressEditor);
    PersonEditorWithOptionalAddressDriver driver =
        GWT.create(PersonEditorWithOptionalAddressDriver.class);
    driver.initialize(editor);
    driver.edit(person);

    // Freshly-initialized should not be dirty
    assertFalse(driver.isDirty());

    // Change the instance being edited
    Address a = new Address();
    editor.address.setValue(a);
    assertTrue(driver.isDirty());

    // Check restoration works
    editor.address.setValue(null);
    assertFalse(driver.isDirty());
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.editor.client.SimpleBeanEditorTest.PersonEditorWithOptionalAddressDriver

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.