Ignore:
Timestamp:
02/21/13 07:33:35 (11 years ago)
Author:
keeloo
Message:

Instead of retrieving the SolrUrl? from the context of the application, retrieve the location of an external VloConfig? from the context, preferably the file used by the importer. By using the context in this way, the configuration for both the importer and the web application will be one and the same.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-2.13-param/vlo_webapp/src/test/java/eu/clarin/cmdi/vlo/pages/FacetBoxPanelTest.java

    r2598 r2600  
    11package eu.clarin.cmdi.vlo.pages;
    22
    3 import static org.junit.Assert.assertEquals;
    4 
     3import eu.clarin.cmdi.vlo.VloApplication;
     4import eu.clarin.cmdi.vlo.config.VloConfig;
    55import java.util.List;
    6 
    76import org.apache.solr.client.solrj.response.FacetField;
    87import org.apache.solr.client.solrj.response.FacetField.Count;
    98import org.apache.wicket.util.tester.WicketTester;
     9import static org.junit.Assert.assertEquals;
    1010import org.junit.Before;
    1111import org.junit.Test;
    12 
    13 import eu.clarin.cmdi.vlo.VloApplication;
    14 import eu.clarin.cmdi.vlo.config.VloConfig;
    1512
    1613public class FacetBoxPanelTest {
     
    2118    public void setUp() {
    2219        WicketTester wicketTester;
    23         testConfig = VloConfig.testWebApp();
     20        String fileName = VloConfig.class.getResource("/VloConfig.xml").getFile();
     21       
     22        testConfig = VloConfig.readTestConfig(fileName);
     23       
     24        // optionally, modify the test configuration here
     25       
    2426        wicketTester = new WicketTester(new VloApplication(testConfig));
    2527    }
Note: See TracChangeset for help on using the changeset viewer.