Hi, I am trying to test my code and I am encountering this issue. Please
let me know what is the problem.
com.java.client.ExportDataToExcelTest - is in my src folder
and ExportDataToExcelTest.java - is in test folder. Is that the problem.
I saw in the GWT tutorial that if the test forlder's
[ERROR] Line 13: No source code is available for type
com.ag.sapwidgets.server.ExportDataToExcel; did you forget to inherit a
required module?
This is the problem. You are trying to convert to javascript the server class
ExportDataToExcel. Either its package should be added to the set
Hi Paul, thanks for your reply. I understand that server side code cannot
be changed to Javascript. The question here was how can I test my server
side logic in GWT.
On Tuesday, July 17, 2012 9:59:05 AM UTC-4, Paul Robinson wrote:
[ERROR] Line 13: No source code is available for type
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
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:
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,
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
Let me explain what I did, I think you got confused of what I have said. I
changed the package of my test class in test folder to the same server side
package in src folder.
com.java.client to com.java.server. Then the exception previously showed
was gone and below exception showed up. I
On 17/07/12 16:24, Venkat wrote:
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
I have done that, now it is giving me the inherit issue, can you tell me I
can inherit all the classes that I want to inherit like this.
Can I use * to inherit all.
inherits name=com.google.gwt.* /
On Tuesday, July 17, 2012 12:14:52 PM UTC-4, Paul Robinson wrote:
On 17/07/12 16:24, Venkat
I did that, but some of the jars from SmartGWT are not getting inherited.
and I don't know what are those classes modules are, so that I can inherit
that. I tried giving the classes directly with the package structure, but
it is changing it to module and saying it does not exist.
On Tuesday,
Not as far as I know, but then why would you want to? You should only import
the modules you need, otherwise I imagine the compile will take longer.
Some google modules import other google modules, so you don't need to add an
inherit for literally every one.
Paul
On 17/07/12 17:26, Venkat
I mean I was just trying and the classes that it told me to inherit, I
don't know the module for those classes. I am waiting for reply from
SmartGWT forum, man these guys does not reply at all, these guys suck. GWT
forum is bang on target, I really like it. Thanks for your support.
On Tuesday,
13 matches
Mail list logo