Package org.lilyproject.solrtestfw

Examples of org.lilyproject.solrtestfw.SolrDefinition$CoreDefinition


        start(solrSchemaData, null);
    }

    public void start(byte[] solrSchemaData, byte[] solrConfigData) throws Exception {
        if (solrSchemaData != null || solrConfigData != null) {
            start(new SolrDefinition(solrSchemaData, solrConfigData));
        } else {
            start((SolrDefinition) null);
        }
    }
View Full Code Here


        solrTestingUtility = new SolrTestingUtility(testHome, clearData, enableSolrCloud);
        solrTestingUtility.setAutoCommitSetting(autoCommitSetting);

        byte[] schemaData = schema == null ? null : FileUtils.readFileToByteArray(new File(schema));
        byte[] solrConfigData = solrConfig == null ? null : FileUtils.readFileToByteArray(new File(solrConfig));
        solrTestingUtility.setSolrDefinition(new SolrDefinition(schemaData, solrConfigData));

        solrTestingUtility.start();

        postStartupInfo.add("-----------------------------------------------");
        postStartupInfo.add("Solr is running");
View Full Code Here

        TestHelper.setupLogging("org.lilyproject");

        byte[] schemaBytes = getResource("solrschema.xml");
        byte[] configBytes = org.lilyproject.solrtestfw.SolrDefinition.defaultSolrConfig();

        lilyProxy.start(new SolrDefinition(
                new SolrDefinition.CoreDefinition(CORE1, schemaBytes, configBytes),
                new SolrDefinition.CoreDefinition(CORE2, schemaBytes, configBytes)
        ));

        configureLilySchema();
View Full Code Here

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

        // Increase number of cores
        solr.changeSolrDefinition(new SolrDefinition(
                SolrDefinition.core("core0"),
                SolrDefinition.core("core1")
        ));

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

        // Reduce number of cores
        solr.changeSolrDefinition(new SolrDefinition(
                SolrDefinition.core("core0")
        ));

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

        // Increase number of cores again
        solr.changeSolrDefinition(new SolrDefinition(
                SolrDefinition.core("core0"),
                SolrDefinition.core("core1"),
                SolrDefinition.core("core2")
        ));
View Full Code Here

    @Test
    public void testNoCore0() throws Exception {
        SolrProxy solr = new SolrProxy();
        solr.start();

        solr.changeSolrDefinition(new SolrDefinition(
                SolrDefinition.core("first"),
                SolrDefinition.core("second")
        ));

        // Even when not specified, there is always the core0 core
View Full Code Here

TOP

Related Classes of org.lilyproject.solrtestfw.SolrDefinition$CoreDefinition

Copyright © 2018 www.massapicom. 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.