I don't use SmartGWT, but it looks like you're using client-side code there. If you're using regular junit tests, then you must stick to server-side classes.
It also looks like you're testing RPC code...do you really need to test from client to server in one test? Paul On 17/07/12 15:44, Venkat wrote: > Hi Paul, I have changed the test from GWT Test to JUnit Test. Now I am > getting this exception. I am using SmartGWT, and in server side coding I have > SmartGWT classes used for Business Logic. > > > java.lang.UnsatisfiedLinkError: > com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject; > at com.smartgwt.client.util.JSOHelper.createObject(Native Method) > at com.smartgwt.client.core.DataClass.<init>(DataClass.java:35) > at com.smartgwt.client.rpc.RPCResponse.<init>(RPCResponse.java:71) > at com.smartgwt.client.data.DSResponse.<init>(DSResponse.java:71) > at > com.java.client.ExportDataToExcelTest.testRetrieveData(ExportDataToExcelTest.java:24) > 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 junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:243) > at junit.framework.TestSuite.run(TestSuite.java:238) > at junit.framework.TestSuite.runTest(TestSuite.java:243) > at junit.framework.TestSuite.run(TestSuite.java:238) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) > > Thanks, > > On Tuesday, July 17, 2012 10:20:57 AM UTC-4, Paul Robinson wrote: > > On 17/07/12 15:07, Venkat wrote: > > how can I test my server side logic in GWT. > GWT is client-side technology. To test server code, set up tests that are > independent of GWT. That is, just create regular junit tests that check your > server classes work properly. > > Paul > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/OxQ4_m9VCkMJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
