Revision 7586
Added by ben leinfelder about 11 years ago
SolrIndexIT.java | ||
---|---|---|
23 | 23 |
import org.apache.solr.common.params.SolrParams; |
24 | 24 |
import org.apache.solr.core.CoreContainer; |
25 | 25 |
import org.apache.solr.servlet.SolrRequestParsers; |
26 |
import org.dataone.configuration.Settings; |
|
27 | 26 |
import org.dataone.service.types.v1.SystemMetadata; |
28 | 27 |
import org.dataone.service.util.TypeMarshaller; |
29 |
import org.junit.Ignore; |
|
30 | 28 |
import org.junit.Test; |
31 | 29 |
import org.xml.sax.SAXException; |
32 | 30 |
|
... | ... | |
118 | 116 |
}*/ |
119 | 117 |
|
120 | 118 |
private SolrIndex generateSolrIndex() throws Exception { |
121 |
Settings.getConfiguration().setProperty("dataone.hazelcast.configFilePath", ApplicationControllerIT.pathToHazelcastFile); |
|
122 | 119 |
ApplicationController controller = new ApplicationController(); |
123 | 120 |
List<SolrIndex> list = controller.getSolrIndexes(); |
124 | 121 |
SolrIndex[] solrIndexesarray = list.toArray(new SolrIndex[list.size()]); |
Also available in: Unified diff
rely on Settings loaded from test resources config rather than hardcoding the paths in code. https://projects.ecoinformatics.org/ecoinfo/issues/5918