Ignore:
Timestamp:
02/13/14 10:54:47 (10 years ago)
Author:
twagoo
Message:

turned VloConfig? into a POJO, created factory interface so that multiple ways. Adapted importer and web app to use this - importer still using static (but project-local) config references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/MetadataImporterTest.java

    r4071 r4507  
    33import eu.clarin.cmdi.vlo.FacetConstants;
    44import eu.clarin.cmdi.vlo.config.DataRoot;
    5 import eu.clarin.cmdi.vlo.config.VloConfig;
    65import java.io.File;
    76import java.io.IOException;
     
    262261               
    263262                // make sure the mapping file for testing is used
    264                 VloConfig.setFacetConceptsFile("/facetConceptsTest.xml");
     263                config.setFacetConceptsFile("/facetConceptsTest.xml");
    265264               
    266265                List<DataRoot> dataRoots = checkDataRoots();
     
    276275                                getFilesFromDataRoot(dataRoot.getRootFile());
    277276                        for (File file : files) {
    278                             if (VloConfig.getMaxFileSize () > 0
     277                            if (config.getMaxFileSize () > 0
    279278                                    && file.length() >
    280                                     VloConfig.getMaxFileSize()) {
     279                                    config.getMaxFileSize()) {
    281280                                LOG.info("Skipping " + file.getAbsolutePath() +
    282281                                        " because it is too large.");
     
    340339        dataRoot.setTostrip("");
    341340        dataRoot.setPrefix("http://example.com");
    342         VloConfig.setDataRoots(Collections.singletonList(dataRoot));
     341        config.setDataRoots(Collections.singletonList(dataRoot));
    343342    }
    344343
Note: See TracChangeset for help on using the changeset viewer.