Revision 8537
Added by ben leinfelder almost 11 years ago
metacat-index/src/test/java/edu/ucsb/nceas/metacat/index/SolrIndexIT.java | ||
---|---|---|
6 | 6 |
import edu.ucsb.nceas.metacat.common.SolrServerFactory; |
7 | 7 |
import java.io.File; |
8 | 8 |
import java.io.FileInputStream; |
9 |
import java.io.IOException; |
|
10 | 9 |
import java.io.InputStream; |
11 | 10 |
import java.io.StringWriter; |
12 | 11 |
import java.io.Writer; |
... | ... | |
17 | 16 |
|
18 | 17 |
import org.apache.solr.client.solrj.SolrServer; |
19 | 18 |
import org.apache.solr.client.solrj.SolrServerException; |
20 |
import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer; |
|
21 | 19 |
import org.apache.solr.client.solrj.response.QueryResponse; |
22 | 20 |
import org.apache.solr.common.params.SolrParams; |
23 | 21 |
import org.apache.solr.core.CoreContainer; |
... | ... | |
69 | 67 |
/** |
70 | 68 |
* Test building index for an insert. |
71 | 69 |
*/ |
72 |
// @Test
|
|
70 |
@Test |
|
73 | 71 |
public void testInsert() throws Exception { |
74 | 72 |
|
75 | 73 |
|
... | ... | |
97 | 95 |
/** |
98 | 96 |
* Test building index for an insert. |
99 | 97 |
*/ |
100 |
// @Test
|
|
98 |
@Test |
|
101 | 99 |
public void testUpdate() throws Exception { |
102 | 100 |
//InputStream systemInputStream = new FileInputStream(new File(SYSTEMMETAFILEPATH)); |
103 | 101 |
SystemMetadata systemMetadata = TypeMarshaller.unmarshalTypeFromFile(SystemMetadata.class, SYSTEMMETAUPDATEFILEPATH); |
... | ... | |
115 | 113 |
/** |
116 | 114 |
* Test building index for an insert. |
117 | 115 |
*/ |
118 |
// @Test
|
|
116 |
@Test |
|
119 | 117 |
public void testArchive() throws Exception { |
120 | 118 |
SolrIndex solrIndex = generateSolrIndex(); |
121 | 119 |
//InputStream systemInputStream = new FileInputStream(new File(SYSTEMMETAFILEPATH)); |
Also available in: Unified diff
uncomment the original tests now that the "field" test is working.