Package org.lilyproject.solrtestfw

Examples of org.lilyproject.solrtestfw.SolrProxy.stop()


        testSolrCore("core0", 200);
        testSolrCore("core1", 200);
        testSolrCore("core2", 200);
        testSolrCore("core3", 404);

        solr.stop();
    }

    @Test
    public void testNoCore0() throws Exception {
        SolrProxy solr = new SolrProxy();
View Full Code Here


        // Even when not specified, there is always the core0 core
        testSolrCore("core0", 200);
        testSolrCore("first", 200);
        testSolrCore("second", 200);

        solr.stop();
    }

    private void testSolrCore(String coreName, int expectedStatus) throws IOException {
        String urlString = "http://localhost:8983/solr/" + coreName + "/select?q=*:*";
        HttpURLConnection conn = performRequest(urlString);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.