Revision 7784
Added by Jing Tao about 11 years ago
IndexGeneratorIT.java | ||
---|---|---|
43 | 43 |
} |
44 | 44 |
|
45 | 45 |
private SolrIndex generateSolrIndex() throws Exception { |
46 |
ApplicationController controller = new ApplicationController(); |
|
46 |
String springConfigFile = "src/main/resources/index-processor-context.xml"; |
|
47 |
String metacatPropertyFile = null; //in this test, we use the test.properties file rather than metacat.properties file. so set it to be null. |
|
48 |
ApplicationController controller = new ApplicationController(springConfigFile, metacatPropertyFile); |
|
49 |
controller.initialize(); |
|
47 | 50 |
List<SolrIndex> list = controller.getSolrIndexes(); |
48 | 51 |
SolrIndex[] solrIndexesarray = list.toArray(new SolrIndex[list.size()]); |
49 | 52 |
SolrIndex index = solrIndexesarray[0]; |
Also available in: Unified diff
Change the code since the ApplicationController's constructor was changed.