package sk.drunkenpanda;
import org.apache.wicket.util.tester.WicketTester;
import org.junit.Before;
import org.junit.Test;
import sk.drunkenpanda.leaflet.example.HomePage;
import sk.drunkenpanda.leaflet.example.WicketApplication;
/**
* Simple test using the WicketTester
*/
public class TestHomePage {
private WicketTester tester;
@Before
public void setUp() {
tester = new WicketTester(new WicketApplication());
}
@Test
public void homepageRendersSuccessfully() {
//start and render the test page
tester.startPage(HomePage.class);
//assert rendered page class
tester.assertRenderedPage(HomePage.class);
}
}