1
|
package edu.ucsb.nceas.metacat.common;
|
2
|
|
3
|
import static org.junit.Assert.assertTrue;
|
4
|
|
5
|
import java.io.FileNotFoundException;
|
6
|
import java.io.IOException;
|
7
|
|
8
|
import org.apache.commons.configuration.ConfigurationException;
|
9
|
import org.apache.solr.client.solrj.SolrServer;
|
10
|
import org.junit.Before;
|
11
|
import org.junit.Test;
|
12
|
|
13
|
public class SolrServerFactoryTest extends MetacatCommonTestBase {
|
14
|
/**
|
15
|
* The setup method
|
16
|
*/
|
17
|
@Before
|
18
|
public void setup () throws FileNotFoundException, ConfigurationException, IOException {
|
19
|
super.setup();
|
20
|
}
|
21
|
|
22
|
@Test
|
23
|
public void testCreateSolrServer() throws Exception {
|
24
|
SolrServer server = SolrServerFactory.createSolrServer();
|
25
|
if(server == null) {
|
26
|
assertTrue("testCreateSolrServer - the server shouldn't be null", true);
|
27
|
}
|
28
|
}
|
29
|
}
|