Very nice. Thanks!
Gili
On 17/06/2011 5:53 AM, Jakub Podlesak-2 [via Jersey] wrote:
> Hi,
>
> InMemoryTestContainer indeed does not make any HTTP calls.
> It provides it's own ClientHandler, which directly invokes
> the web application handleRequest method.
>
> All that is done without changing the client API as such.
>
> Since it is the test framework, who controls the client
> creation, the client does not need to know anything
> about the test framework. You just call the getClient method
> which gives you the right client using the above mentioned handler
> to "make" the http calls.
>
> ~Jakub
>
> On 06/16/2011 05:53 PM, Ryan Stewart wrote:
>> I haven't looked into the in-memory test stuff yet, but unless there
>> have been some pretty drastic changes to the client API, I'd say
>> that's not possible. The Jersey client makes HTTP calls. It wouldn't
>> make a lot of sense to make it aware of a test framework that it
>> might possibly be talking to.
>>
>> On Wed, Jun 15, 2011 at 4:10 PM, Gili <[hidden email]
>> </user/SendEmail.jtp?type=node&node=6486446&i=0>> wrote:
>>
>> Hi,
>>
>> How exactly does InMemoryTestContainerFactory work? Am I correct
>> in assuming
>> that it never binds itself to any port? Does it simply redirect
>> function
>> calls from the client directly to function calls on the server?
>>
>> Thanks,
>> Gili
>>
>> --
>> View this message in context:
>> http://jersey.576304.n2.nabble.com/InMemoryTestContainerFactory-tp6480614p6480614.html
>> Sent from the Jersey mailing list archive at Nabble.com.
>>
>>
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://jersey.576304.n2.nabble.com/InMemoryTestContainerFactory-tp6480614p6486446.html
>
> To unsubscribe from InMemoryTestContainerFactory, click here
> <http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6480614&code=Y293d29jQGJicy5kYXJrdGVjaC5vcmd8NjQ4MDYxNHwxNTc0MzIxMjQ3>.
>
--
View this message in context: http://jersey.576304.n2.nabble.com/InMemoryTestContainerFactory-tp6480614p6486900.html
Sent from the Jersey mailing list archive at Nabble.com.