Re: [Schema API] EmbeddedSolrServer Test

2014-07-11 Thread Alessandro Benedetti
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 extraServlets = new > TreeMap(); > final ServletHolder solrRestApi = new ServletHolder("SolrRestApi", >

Re: [Schema API] EmbeddedSolrServer Test

2014-07-10 Thread Chris Hostetter
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 tha

[Schema API] EmbeddedSolrServer Test

2014-07-10 Thread Alessandro Benedetti
Hi guys, I'm struggling testing schemaAPI REST endpoints thourgh EmbeddedSolrServer. Out of the box the Embedded Solr Server is not able to recognize the schema request handler. So I was trying to follow an approach like this : public static void init() throws Exception { > final SortedMap ex