Skip to content

Commit 423dc63

Browse files
BAEL-226 - Source code for wicket
1 parent dd360db commit 423dc63

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

wicket/src/main/java/com/baeldung/wicket/examples/Examples.html renamed to wicket/src/main/java/com/baeldung/wicket/examples/HelloWorld.html

File renamed without changes.

wicket/src/main/java/com/baeldung/wicket/examples/Examples.java renamed to wicket/src/main/java/com/baeldung/wicket/examples/HelloWorld.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import 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

wicket/src/main/java/com/baeldung/wicket/examples/ExamplesApplication.java renamed to wicket/src/main/java/com/baeldung/wicket/examples/HelloWorldApplication.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
import org.apache.wicket.protocol.http.WebApplication;
55

66
import 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
/**

‎wicket/src/main/test/java/com/baeldung/wicket/examples/TestHomePage.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

‎wicket/src/main/webapp/WEB-INF/web.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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

0 commit comments

Comments
 (0)