Line | |
---|
1 | package eu.clarin.cmdi.vlo; |
---|
2 | |
---|
3 | import eu.clarin.cmdi.vlo.config.VloConfig; |
---|
4 | import org.apache.wicket.util.tester.WicketTester; |
---|
5 | import org.junit.Before; |
---|
6 | import org.junit.Test; |
---|
7 | |
---|
8 | /** |
---|
9 | * Simple test using the WicketTester |
---|
10 | */ |
---|
11 | public class TestFacetedSearchPage { |
---|
12 | |
---|
13 | // application configuration |
---|
14 | static VloConfig config; |
---|
15 | |
---|
16 | @Before |
---|
17 | public void setUp() { |
---|
18 | |
---|
19 | WicketTester wicketTester; |
---|
20 | |
---|
21 | // include the full path in the name of the packaged configuration file |
---|
22 | String fileName = VloConfig.class.getResource("/VloConfig.xml").getFile(); |
---|
23 | |
---|
24 | // read the configuration defined in the file |
---|
25 | config = VloConfig.readTestConfig(fileName); |
---|
26 | |
---|
27 | // optionally, modify the test configuration here |
---|
28 | |
---|
29 | wicketTester = new WicketTester(new VloWebApplication(config)); |
---|
30 | } |
---|
31 | |
---|
32 | @Test |
---|
33 | public void testRenderMyPage() { |
---|
34 | // tester.startPage(FacetedSearchPage.class); |
---|
35 | // tester.assertRenderedPage(FacetedSearchPage.class); |
---|
36 | // tester.assertLabel("message", "If you see this message wicket is properly configured and running"); |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.