Hi Megala,

I am not sure about why this error occurs. However integration test suit in
MB is not designed to run as individual test cases since a MB server is
required to be running. If you want to run a selected test case you can
follow the following procedure.


   - Start the MB Server manually.
   - Navigate to the test module you want to run in terminal.
   - Use the command 'mvn -Dtest=AutoAcknowledgementsTestCase test' to run
   the test case.

Refer the surefire documentation [1] for more details.

Thanks,
Akalanka.

[1] -
http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html

On Thu, Feb 5, 2015 at 4:37 PM, Megala Uthayakumar <[email protected]> wrote:

> Hi,
>
> I tried to run the single test class AutoAcknowledegementsTestCase using
> the intellij. It gave the following error
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *ERROR
> [org.wso2.carbon.automation.engine.configurations.AutomationConfiguration]
> - Error While reading
> configurations[Ljava.lang.StackTraceElement;@24177336java.lang.ExceptionInInitializerError
> at
> org.wso2.carbon.automation.engine.context.AutomationContext.assignParameters(AutomationContext.java:166)
> at
> org.wso2.carbon.automation.engine.context.AutomationContext.<init>(AutomationContext.java:129)
> at
> org.wso2.mb.integration.common.utils.backend.MBIntegrationBaseTest.init(MBIntegrationBaseTest.java:53)
> at
> org.wso2.mb.integration.tests.amqp.functional.AutoAcknowledgementsTestCase.prepare(AutoAcknowledgementsTestCase.java:40)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)    at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> at
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)    at
> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)    at
> org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)    at
> org.testng.TestRunner.run(TestRunner.java:617)    at
> org.testng.SuiteRunner.runTest(SuiteRunner.java:334)    at
> org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)    at
> org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)    at
> org.testng.SuiteRunner.run(SuiteRunner.java:240)    at
> org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)    at
> org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)    at
> org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)    at
> org.testng.TestNG.runSuitesLocally(TestNG.java:1149)    at
> org.testng.TestNG.run(TestNG.java:1057)    at
> org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)    at
> org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)    at
> org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)    at
> org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125)    at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)    at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)Caused
> by: java.lang.IllegalArgumentException: Error While reading
> configurations[Ljava.lang.StackTraceElement;@2eedd06a    at
> org.wso2.carbon.automation.engine.configurations.AutomationConfiguration.<clinit>(AutomationConfiguration.java:26)
> ... 34 more*
>
> But I was able to run this test case when building the product-mb. What
> may be the possible reason for this?
>
>
> Thanks
> --
> Megala Uthayakumar
> *Software Engineering Intern *| *WSO2 Lanka*
> Mobile : +94 779 967 122
> Tel      : +94 112 733 667
> E-mail :  [email protected]
>



-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to