source: vlo/branches/vlo-2.13-param/vlo_web_app/src/test/java/eu/clarin/cmdi/vlo/TestFacetedSearchPage.java @ 2659

Last change on this file since 2659 was 2659, checked in by keeloo, 11 years ago

Removed VloConfig?.get() and made the member variables static themselves. Cleaned up the VloConfig? class.

File size: 1.1 KB
Line 
1package eu.clarin.cmdi.vlo;
2
3import eu.clarin.cmdi.vlo.config.VloConfig;
4import org.apache.wicket.util.tester.WicketTester;
5import org.junit.Before;
6import org.junit.Test;
7
8/**
9 * Simple test using the WicketTester
10 */
11public 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.