File tree Expand file tree Collapse file tree
java/com/baeldung/wicket/examples
test/java/com/baeldung/wicket/examples Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 22
33import org .apache .wicket .markup .html .WebPage ;
44
5- public class Examples extends WebPage {
5+ public class HelloWorld extends WebPage {
66
77 private static final long serialVersionUID = 1L ;
88
Original file line number Diff line number Diff line change 44import org .apache .wicket .protocol .http .WebApplication ;
55
66import com .baeldung .wicket .examples .cafeaddress .CafeAddress ;
7- import com .baeldung .wicket .examples .helloworld .HelloWorld ;
87
9- public class ExamplesApplication extends WebApplication {
8+ public class HelloWorldApplication extends WebApplication {
109 /**
1110 * @see org.apache.wicket.Application#getHomePage()
1211 */
1312 @ Override
1413 public Class <? extends WebPage > getHomePage () {
15- return Examples .class ;
14+ return HelloWorld .class ;
1615 }
1716
1817 /**
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ public class TestHomePage {
99
1010 @ Before
1111 public void setUp () {
12- tester = new WicketTester (new ExamplesApplication ());
12+ tester = new WicketTester (new HelloWorldApplication ());
1313 }
1414
1515 @ Test
1616 public void whenPageInvoked_thanRenderedOK () {
1717 //start and render the test page
18- tester .startPage (Examples .class );
18+ tester .startPage (HelloWorld .class );
1919
2020 //assert rendered page class
21- tester .assertRenderedPage (Examples .class );
21+ tester .assertRenderedPage (HelloWorld .class );
2222 }
2323}
Original file line number Diff line number Diff line change 2121 <filter-class >org.apache.wicket.protocol.http.WicketFilter</filter-class >
2222 <init-param >
2323 <param-name >applicationClassName</param-name >
24- <param-value >com.baeldung.wicket.examples.ExamplesApplication </param-value >
24+ <param-value >com.baeldung.wicket.examples.HelloWorldApplication </param-value >
2525 </init-param >
2626 </filter >
2727
You can’t perform that action at this time.
0 commit comments