I have removed the client side code from the test case, the exception is gone. But I got one exception that is below. I am guessing this is because I did not specified the test folder in my Module. If yes, can you please tell me how can I do that. Usually we specify the src folder as <source> in module, how can we do that for test folder.
testRetrieveData(com.java.server.ExportDataToExcelTest)com.google.gwt.junit.JUnitFatalLaunchException: The test class 'com.java.server.ExportDataToExcelTest' was not found in module 'com.java.ExportDataToExcelTest'; no compilation unit for that type was seen at com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:743) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1346) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296) at com.java.server.GWTAllTests.main(GWTAllTests.java:19) On Tuesday, July 17, 2012 11:05:23 AM UTC-4, Paul Robinson wrote: > > 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/-/oK8CaeSghUkJ. 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.
