BAEL-226 - Source code for wicket

This commit is contained in:
slavisa-baeldung 2016-10-10 00:34:11 +02:00
parent dd360db060
commit 423dc63cdd
5 changed files with 7 additions and 8 deletions

View File

@ -2,7 +2,7 @@ package com.baeldung.wicket.examples;
import org.apache.wicket.markup.html.WebPage;
public class Examples extends WebPage {
public class HelloWorld extends WebPage {
private static final long serialVersionUID = 1L;

View File

@ -4,15 +4,14 @@ import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import com.baeldung.wicket.examples.cafeaddress.CafeAddress;
import com.baeldung.wicket.examples.helloworld.HelloWorld;
public class ExamplesApplication extends WebApplication {
public class HelloWorldApplication extends WebApplication {
/**
* @see org.apache.wicket.Application#getHomePage()
*/
@Override
public Class<? extends WebPage> getHomePage() {
return Examples.class;
return HelloWorld.class;
}
/**

View File

@ -9,15 +9,15 @@ public class TestHomePage {
@Before
public void setUp() {
tester = new WicketTester(new ExamplesApplication());
tester = new WicketTester(new HelloWorldApplication());
}
@Test
public void whenPageInvoked_thanRenderedOK() {
//start and render the test page
tester.startPage(Examples.class);
tester.startPage(HelloWorld.class);
//assert rendered page class
tester.assertRenderedPage(Examples.class);
tester.assertRenderedPage(HelloWorld.class);
}
}

View File

@ -21,7 +21,7 @@
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>com.baeldung.wicket.examples.ExamplesApplication</param-value>
<param-value>com.baeldung.wicket.examples.HelloWorldApplication</param-value>
</init-param>
</filter>