Package com.tll.client.bind

Source Code of com.tll.client.bind.FieldBindingGWTTest

package com.tll.client.bind;

import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.ui.RootPanel;
import com.tll.client.test.TestFieldPanel;
import com.tll.common.model.test.TestModelStubber;

/**
* GWT JUnit tests must extend GWTTestCase.
*/
public class FieldBindingGWTTest extends GWTTestCase {

  /**
   * Must refer to a valid module that sources this class.
   */
  @Override
  public String getModuleName() {
    return "com.tll.FieldTest";
  }

  /**
   * Tests the initial binding of model properties to fields.
   */
  public void testBind() {
    final TestFieldPanel fieldPanel = new TestFieldPanel();
    //fieldPanel.setAction(new SimpleBindingAction());
    fieldPanel.setModel(TestModelStubber.stubAccount(true));
    RootPanel.get().add(fieldPanel);
  }
}
TOP

Related Classes of com.tll.client.bind.FieldBindingGWTTest

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.