Great work Azeez. Thanks!

Charitha


On Sun, Mar 13, 2011 at 7:25 AM, Afkham Azeez <[email protected]> wrote:

> Folks,
> This is something I've been thinking about for sometime, and finally found
> some time this weekend to make this work. Now you can start any Carbon
> instance from your JUnit test code, and test your components.
>
> Your test case needs to
> extend org.wso2.carbon.integration.core.CarbonIntegrationTestCase [1]
>
> I have included a simple test which tests whether a Carbon core server
> starts up properly [2]
>
> For further details see the integration/core module [3]
>
> 1.
> https://wso2.org/repos/wso2/trunk/carbon/core/integration/core/src/test/java/org.wso2.carbon.integration.core/CarbonIntegrationTestCase.java
> 2.
> https://wso2.org/repos/wso2/trunk/carbon/core/integration/core/src/test/java/org.wso2.carbon.integration.core/StartCarbonServerTest.java
> 3. https://wso2.org/repos/wso2/trunk/carbon/core/integration/core
>
> Please try this out and let me know if we can make any improvements or if
> there are any shortcomings. Also, henceforth, it is a component author's
> responsibility to write unit tests & integration tests. Now, even admin
> services can be easily tested using this framework. Also, now it should be
> easy to write a test case when we create patches.
>
> --
> *Afkham Azeez*
> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
> *
> *
> *Member; Apache Software Foundation; 
> **http://www.apache.org/*<http://www.apache.org/>
> *
> email: **[email protected]* <[email protected]>* cell: <%2B94%2077%203320919>+94
> 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to