Exemplo n.º 1
0
  public void testUpdateFromTargetImmediately() throws Exception {
    assertNull(bean.getProperty());

    target.setValue("TestValue"); // $NON-NLS-1$

    assertEquals("TestValue", bean.getProperty()); // $NON-NLS-1$
  }
Exemplo n.º 2
0
  public void testUpdateFromModelOnRequest() throws Exception {
    assertNull(target.getValue());

    bean.setProperty("TestValue"); // $NON-NLS-1$

    assertNull(target.getValue());

    valueBindingSupport.updateFromModel();

    assertEquals("TestValue", target.getValue()); // $NON-NLS-1$
  }