Package com.wiquery.plugins.test

Source Code of com.wiquery.plugins.test.TestHomePage

package com.wiquery.plugins.test;

import junit.framework.TestCase;

import org.apache.wicket.util.tester.WicketTester;

import com.wiquery.plugins.demo.HomePage;
import com.wiquery.plugins.demo.WicketApplication;

/**
* Simple test using the WicketTester
*/
public class TestHomePage extends TestCase {
  private WicketTester tester;

  @Override
  public void setUp()
  {
    tester = new WicketTester(new WicketApplication());
  }

  public void testRenderMyPage() {
    //start and render the test page
    tester.startPage(HomePage.class);

    //assert rendered page class
    tester.assertRenderedPage(HomePage.class);

    //assert rendered label component
//    tester.assertLabel("message", "If you see this message wicket is properly configured and running");
  }
}
TOP

Related Classes of com.wiquery.plugins.test.TestHomePage

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.