I am trying to add unit tests to the binaryResponseWriter. I am not using solrcloud. It is just a simple master-slave setup(4.10.4 version). There is no concept of zkclients as this is traditional master-slave setup. Problem is when I extend AbstractSolrTestCase and run unit tests, I see error as "java.lang.NoClassDefFoundError: org/apache/solr/common/cloud/SolrZkClient ".
How do I configure the unit test that it is master-slave setup and not to configure zkclients? Please any suggestions to write unitTests for this.
The test looks somewhat like below.
public class SolrSearchConfigTest extends AbstractSolrTestCase {
private SolrServer server;
public String getSolrHome() {
return "src/Collection";
}
@Before
@Override
public void setUp() throws Exception {
super.setUp();
server = new EmbeddedSolrServer(h.getCoreContainer(), h.getCore().getName());
}
}
Aucun commentaire:
Enregistrer un commentaire