Hi Manuel, We have a way of doing it in our integration tests. There is a class that you can extend and override with your implementations of its methods, org.wso2.carbon.integration.core.TestTemplate, [1]. This class extends the JUnit TestCase class, and therefore, you can make use of it to write your tests. Some example integration tests are found in [2].
[1] https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/core/integration/core/3.2.0/src/test/java/org.wso2.carbon.integration.core/TestTemplate.java [2] https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/products/greg/4.0.0/modules/integration/registry Thanks, Senaka On Thu, Jul 7, 2011 at 2:16 AM, Manuel Chinea <[email protected]> wrote: > Hi, > > I need to build a maven project that uses the WSO2 Greg as backend. So far, > we have our hudson build to do the following build steps: > 1.- run an already installed wso2 server using: > /$directory/bin/wso2server.sh -start > 2.- run mvn clean install > 3.- stop the wso2 server using: /$directory/bin/wso2server.sh -stop > > To work in our local machines, we basically have to remember to start wso2, > then run our builds. Is there a way to have an embeeded wso2 to run straight > in our maven run (using a maven plugin)?, or perhaps a testing framework to > do this setup?. How do you guys handle this? > > Regards. > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
