BAEL-226 - Source code for wicket
This commit is contained in:
parent
dd360db060
commit
423dc63cdd
|
@ -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;
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue