Hi All, I'm trying to run a simple piece of code, to get SolrTestCaseJ4 to work. Here's my code:
public class MyTest extends SolrTestCaseJ4 { @BeforeClass public static void init() throws Exception { initCore("solrconfig.xml", "schema.xml"); lrf = h.getRequestFactory("standard", 0, 20); } @Test public void testNothing() { } } I have the required solrconfig.xml and schema.xml inside *./src/test/resources/solr/collection1/conf* However, when I run a test on testNothing() method, I get the following error: *java.lang.RuntimeException: java.io.IOException: Can't find resource* 'rs_A_count_gte300k.txt' in classpath or '/Users/nishantkelkar/IdeaProjects/k2/solr-component/target/test-classes/solr/collection1/conf' at __randomizedtesting.SeedInfo.seed([BB606BF344F3401]:0) at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:169) at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55) at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69) at org.apache.solr.util.TestHarness.<init>(TestHarness.java:98) at org.apache.solr.SolrTestCaseJ4.createCore(SolrTestCaseJ4.java:472) at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:464) at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:273) at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:260) What could the issue be over here? *P.S:* This is my first question on this mailing list. Pardon me if I haven't stuck to some convention everyone follows here! Best Regards, Nishant Kelkar