Thank you Chris,
Exactly as you suggested I was looking into related classes to that one.

Playing with :

@BeforeClass
>   public static void init() throws Exception {
>     final SortedMap<ServletHolder,String> extraServlets = new
> TreeMap<ServletHolder,String>();
>     final ServletHolder solrRestApi = new ServletHolder("SolrRestApi",
> ServerServlet.class);
>     solrRestApi.setInitParameter("org.restlet.application",
> "org.apache.solr.rest.SolrRestApi");
>     extraServlets.put(solrRestApi, "/schema/*");  // '/schema/*' matches
> '/schema', '/schema/', and '/schema/whatever...'
>     createJettyAndHarness(TEST_HOME(), "solrconfig.xml",
> "schema-rest.xml", "/solr", true, extraServlets);


I have some exception init solrRestApi param, let's see if i can fix them.

Cheers


2014-07-10 21:59 GMT+01:00 Chris Hostetter <hossman_luc...@fucit.org>:

>
> EmbeddedSolrServer is really just for dealing with embedded SolrCore
> objects.  It doesn't have ay of the other HTTP related plumbing
> assocaited with it -- which is why it can't be used for replication and/or
> cloud features, let alone the RESTLet based endpoints.
>
> if you want to write a test that leverages the SchemaAPI, your best bet is
> to take advantage of the baseclass provided with solr's test framework...
>
>
> https://lucene.apache.org/solr/4_9_0/solr-test-framework/org/apache/solr/util/RestTestBase.html
>
> If you look for usages of that class in Solr's own tests, you'll find
> several examples.
>
>
> -Hoss
> http://www.lucidworks.com/
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to