Changeset 4507 for vlo/branches/vlo-3.0/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/MetadataImporterTest.java
- Timestamp:
- 02/13/14 10:54:47 (10 years ago)
- 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 3 3 import eu.clarin.cmdi.vlo.FacetConstants; 4 4 import eu.clarin.cmdi.vlo.config.DataRoot; 5 import eu.clarin.cmdi.vlo.config.VloConfig;6 5 import java.io.File; 7 6 import java.io.IOException; … … 262 261 263 262 // make sure the mapping file for testing is used 264 VloConfig.setFacetConceptsFile("/facetConceptsTest.xml");263 config.setFacetConceptsFile("/facetConceptsTest.xml"); 265 264 266 265 List<DataRoot> dataRoots = checkDataRoots(); … … 276 275 getFilesFromDataRoot(dataRoot.getRootFile()); 277 276 for (File file : files) { 278 if ( VloConfig.getMaxFileSize () > 0277 if (config.getMaxFileSize () > 0 279 278 && file.length() > 280 VloConfig.getMaxFileSize()) {279 config.getMaxFileSize()) { 281 280 LOG.info("Skipping " + file.getAbsolutePath() + 282 281 " because it is too large."); … … 340 339 dataRoot.setTostrip(""); 341 340 dataRoot.setPrefix("http://example.com"); 342 VloConfig.setDataRoots(Collections.singletonList(dataRoot));341 config.setDataRoots(Collections.singletonList(dataRoot)); 343 342 } 344 343
Note: See TracChangeset
for help on using the changeset viewer.