Hi Krishantha,

It was 2.3, with 2.12 it works fine. Thanks.

On Sun, Mar 1, 2015 at 11:38 AM, Krishantha Samaraweera <[email protected]
> wrote:

> Hi Kalpa,
>
> What is your surefire version. Can you use surefire 2.12 and check again.
>
> Thanks,
> Krishantha.
>
> On Sun, Mar 1, 2015 at 11:06 AM, Kalpa Welivitigoda <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am writing a unit test for the jms module of wso2 axis2 transports [1].
>> I followed [2] and added the testng dependency (version 6.1.1) to jms
>> module.
>>
>> When I run the test I get the following error. What could have gone wrong
>> here?
>>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> org.apache.maven.surefire.booter.SurefireExecutionException:
>> org.testng.xml.XmlSuite.setParallel(Z)V; nested exception is
>> java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
>> java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
>> at
>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:123)
>> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>> [1] https://github.com/wso2/wso2-axis2-transports
>> [2] https://docs.wso2.com/display/TA430/Unit+Testing
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: [email protected]
>> Mobile: +94776509215
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: [email protected]
Mobile: +94776509215
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to