You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Robert Young <ro...@roryoung.co.uk> on 2008/11/28 00:28:06 UTC

Mock solr server

Hi,

Does anyone know of an easy to use Mock solr server?

Thanks
Rob

Re: Mock solr server

Posted by Robert Young <ro...@roryoung.co.uk>.
Will look into it, thanks.

On Fri, Nov 28, 2008 at 9:01 AM, Erik Hatcher <er...@ehatchersolutions.com>wrote:

> In solr-ruby there is a basic "mock" Solr server implementation:
>
>  <
> http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/test/unit/solr_mock_base.rb?view=markup
> >
>
> It's used to test some core response handling routines, like this:
>
>  <
> http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/test/unit/standard_response_test.rb?view=markup
> >
>
>        Erik
>
>
>
> On Nov 28, 2008, at 3:41 AM, Robert Young wrote:
>
>  I'm not using Java unfortunately. Is there anything that allows me to
>> interact with it much like a normal mock object, setting expectations and
>> return values?
>>
>> On Fri, Nov 28, 2008 at 12:06 AM, Jeryl Cook <tw...@gmail.com> wrote:
>>
>>  are you trying to unit test something? I would simply make use  of the
>>> Embedded SOLR component in your unit tests..
>>>
>>> On 11/27/08, Robert Young <ro...@roryoung.co.uk> wrote:
>>>
>>>> Hi,
>>>>
>>>> Does anyone know of an easy to use Mock solr server?
>>>>
>>>> Thanks
>>>> Rob
>>>>
>>>>
>>>
>>> --
>>> Jeryl Cook
>>> /^\ Pharaoh /^\
>>> http://pharaohofkush.blogspot.com/
>>> "Whether we bring our enemies to justice, or bring justice to our
>>> enemies, justice will be done."
>>> --George W. Bush, Address to a Joint Session of Congress and the
>>> American People, September 20, 2001
>>>
>>>
>

Re: Mock solr server

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
In solr-ruby there is a basic "mock" Solr server implementation:

   <http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/test/unit/solr_mock_base.rb?view=markup 
 >

It's used to test some core response handling routines, like this:

  <http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/test/unit/standard_response_test.rb?view=markup 
 >

	Erik


On Nov 28, 2008, at 3:41 AM, Robert Young wrote:

> I'm not using Java unfortunately. Is there anything that allows me to
> interact with it much like a normal mock object, setting  
> expectations and
> return values?
>
> On Fri, Nov 28, 2008 at 12:06 AM, Jeryl Cook <tw...@gmail.com>  
> wrote:
>
>> are you trying to unit test something? I would simply make use  of  
>> the
>> Embedded SOLR component in your unit tests..
>>
>> On 11/27/08, Robert Young <ro...@roryoung.co.uk> wrote:
>>> Hi,
>>>
>>> Does anyone know of an easy to use Mock solr server?
>>>
>>> Thanks
>>> Rob
>>>
>>
>>
>> --
>> Jeryl Cook
>> /^\ Pharaoh /^\
>> http://pharaohofkush.blogspot.com/
>> "Whether we bring our enemies to justice, or bring justice to our
>> enemies, justice will be done."
>> --George W. Bush, Address to a Joint Session of Congress and the
>> American People, September 20, 2001
>>


Re: Mock solr server

Posted by Robert Young <ro...@roryoung.co.uk>.
I'm not using Java unfortunately. Is there anything that allows me to
interact with it much like a normal mock object, setting expectations and
return values?

On Fri, Nov 28, 2008 at 12:06 AM, Jeryl Cook <tw...@gmail.com> wrote:

> are you trying to unit test something? I would simply make use  of the
> Embedded SOLR component in your unit tests..
>
> On 11/27/08, Robert Young <ro...@roryoung.co.uk> wrote:
> > Hi,
> >
> > Does anyone know of an easy to use Mock solr server?
> >
> > Thanks
> > Rob
> >
>
>
> --
> Jeryl Cook
> /^\ Pharaoh /^\
> http://pharaohofkush.blogspot.com/
> "Whether we bring our enemies to justice, or bring justice to our
> enemies, justice will be done."
> --George W. Bush, Address to a Joint Session of Congress and the
> American People, September 20, 2001
>

Re: Mock solr server

Posted by Jeryl Cook <tw...@gmail.com>.
are you trying to unit test something? I would simply make use  of the
Embedded SOLR component in your unit tests..

On 11/27/08, Robert Young <ro...@roryoung.co.uk> wrote:
> Hi,
>
> Does anyone know of an easy to use Mock solr server?
>
> Thanks
> Rob
>


-- 
Jeryl Cook
/^\ Pharaoh /^\
http://pharaohofkush.blogspot.com/
"Whether we bring our enemies to justice, or bring justice to our
enemies, justice will be done."
--George W. Bush, Address to a Joint Session of Congress and the
American People, September 20, 2001