You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
731 B
Java
25 lines
731 B
Java
package org.gcube.application.cms.tests.model.concessioni;
|
|
|
|
import org.gcube.application.geoportal.common.utils.Files;
|
|
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.nio.charset.Charset;
|
|
import java.util.HashMap;
|
|
|
|
public class TestConcessioniQueries {
|
|
|
|
public static final HashMap<String,String> queries =new HashMap<>();
|
|
|
|
static{
|
|
|
|
for(File f:new File(TestConcessioniModel.getBaseFolder(),"queries").listFiles()){
|
|
try {
|
|
queries.put(f.getName(), Files.readFileAsString(f.getAbsolutePath(), Charset.defaultCharset()));
|
|
} catch (IOException e) {
|
|
throw new RuntimeException("Unable to read "+f.getAbsolutePath(),e);
|
|
}
|
|
}
|
|
}
|
|
}
|