Package org.wicketstuff.lazymodel.LazyModelTest

Examples of org.wicketstuff.lazymodel.LazyModelTest.A


public class PropertyModelComparison {

  private A a;

  public PropertyModelComparison() {
    a = new A();
    a.b = new B();
    a.b.cs.add(new C());
  }
View Full Code Here


  @Test
  public void bindToRow() {
    LazyColumn<A, Void, B> column = new LazyColumn<A, Void, B>(
        Model.of("test"), from(A.class).getB());

    A a1 = new A();
    a1.b = new B();
    IModel<A> rowModel1 = Model.of(a1);
    assertEquals(a1.b, column.getDataModel(rowModel1).getObject());

    A a2 = new A();
    a2.b = new B();
    IModel<A> rowModel2 = Model.of(a2);
    assertEquals(a2.b, column.getDataModel(rowModel2).getObject());
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.lazymodel.LazyModelTest.A

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.