Ignore:
Timestamp:
02/28/13 09:12:48 (11 years ago)
Author:
keeloo
Message:

Repaired web application and importer tests. This included changing the initialisation of the profileSchemaUrl
parameter. Cleaned up code in importer main.

File:
1 edited

Legend:

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

    r1043 r2639  
    11package eu.clarin.cmdi.vlo.importer;
    22
     3import eu.clarin.cmdi.vlo.config.VloConfig;
    34import static org.junit.Assert.assertEquals;
    4 
     5import org.junit.Before;
    56import org.junit.Test;
    67
     8public class CountryNamePostProcessorTest {
    79
    8 public class CountryNamePostProcessorTest {
     10    static VloConfig config;
     11    // include the full path in the name of the packaged configuration file
     12
     13    @Before
     14    public void setUp() {
     15        // application configuration
     16       
     17        String fileName = VloConfig.class.getResource("/VloConfig.xml").getFile();
     18
     19        // optionally, check for file existence here
     20
     21        // read the configuration defined in the file
     22
     23        config = VloConfig.readConfig(fileName);
     24
     25        // optionally, modify the configuration here
     26
     27        // apparantly, this does not make the configuration available
     28    }
    929   
    1030    @Test
Note: See TracChangeset for help on using the changeset viewer.