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" ?

> ...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.

-Bertrand

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

Reply via email to