Revision 8131
Added by Jing Tao over 11 years ago
metacat-index/src/test/java/edu/ucsb/nceas/metacat/index/SolrIndexIT.java | ||
---|---|---|
46 | 46 |
solrIndex = generateSolrIndex(); |
47 | 47 |
} |
48 | 48 |
|
49 |
private SolrIndex generateSolrIndex() throws Exception {
|
|
49 |
public static SolrIndex generateSolrIndex() throws Exception {
|
|
50 | 50 |
String springConfigFile = "/index-processor-context.xml"; |
51 | 51 |
String metacatPropertyFile = null; //in this test, we use the test.properties file rather than metacat.properties file. so set it to be null. |
52 | 52 |
ApplicationController controller = new ApplicationController(springConfigFile, metacatPropertyFile); |
Also available in: Unified diff
Make the method getSolrindex to be public.