Hello Bertrand,

On 11/18/2011 03:12 PM, Bertrand Delacretaz wrote:
Hi Anil,

On Fri, Nov 18, 2011 at 12:19 PM, Ali Anil SINACI<[email protected]>  wrote:
AFAICS org.apache.stanbol.commons.testing.http.RequestBuilder class only
makes use of "query parameters". In contenthub, to test the interfaces which
do not accept query parameters, T think we will

   * write corresponding interfaces which accept query paramters (this
     way, we can make use of RequestBuilder class through RequestExecutor)
   * extend the related classes (Request, RequestBuilder etc.) to allow
     posting other types of parameters (I'm not sure about this)...
What do you mean by "other types of parameters" ?

I was trying to describe the "FormParam, FormDataParam etc.." under jersey. I think I can serialize the necessary headers and payload as Rupert has pointed out.
...Regarding the unit tests, we need to instantiate the components independent
of an OSGi environment...
You could also test them inside the OSGi environment, using pax exam
as you indicate or the Sling testing tools [1] which allows bundles to
contribute unit tests. Those tools are meant to be independent of
Sling, if you see problems using them in Stanbol I'm happy to help
fixing that.

I thought initializing an OSGI environment for each test class may result in a long time for test executions (I do not have any idea about duration of such tests). Then, I will try to implement the tests with Sling tools.
-Bertrand

[1] http://sling.apache.org/site/sling-testing-tools.html


Thank you very much,

Anil.

--
Ali Anil SINACI

Software Research, Development and Consultancy Ltd.
Phone: +90 (312) 2101763
Fax: +90 (312) 2101837
E-mail: [email protected]

Reply via email to