Package org.apache.wicket

Examples of org.apache.wicket.TestPage_1


    IObjectChecker checker = new OrphanComponentChecker();
    IObjectChecker.Result result = checker.check(component);
    assertEquals(IObjectChecker.Result.Status.FAILURE, result.status);
    assertEquals("A component without a parent is detected.", result.reason);

    WebPage parent = new TestPage_1();
    parent.add(component);
    IObjectChecker.Result result2 = checker.check(component);
    assertEquals(IObjectChecker.Result.SUCCESS, result2);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.TestPage_1

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.