Writing GWT tests

Hey,
I'm coding our GWT application with IntelliJ 8
The application doesn't has GWT tests and i18n support, how to start writing GWT tests and start employing GWT i18n support?
GWT has native tools for this but I'm not sure if IntelliJ would help me.
Any ideas?
Thanks.

5 comments
Comment actions Permalink

You can create a GWT test by using Popup Menu -> New -> "Google Web Toolkit" -> "GWT Test Case" menu item in Project View (selection must be under
some test sources root).

In order to i18nize your GWT application you should create a properties file with associated interface and use "Internationalize" refactoring or "Hard
coded string" inspection.

Hey,
I'm coding our GWT application with IntelliJ 8
The application doesn't has GWT tests and i18n support, how to start writing GWT tests and start employing GWT i18n support?
GWT has native tools for this but I'm not sure if IntelliJ would help me.
Any ideas?
Thanks.

---
Original message URL: http://www.jetbrains.net/devnet/message/5229184#5229184



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Selection should be under test source root?
Well, this one is hard to discover by myself
Thanks a lot.

0
Comment actions Permalink

Hello,

I created a folder called "test" under my GWT module as it would be created by the GWT command line junitCreator.
Then I did right mouse click on my folder "test" as described in your answer and chose "Google Web Kit -> GWT Test Case".

However I get the error that "this is only allowed for client side packages of GWT".
So I'm wondering what shall I do? Create the same client package under the folder "test" as it is under my folder "src"?

So under the folder "src" I have the package the "com.myname.example.client" in which my GWT client sources are.
Do I now have to create the same package under "test" as well and adding "test" to the package?

It would be really helpful if this is described in the Help of IntelliJ under GWT and I18n as well.

Thank you very much.
Kind regards.
Tadeusz

0
Comment actions Permalink

Hello,

yes, you need to create the same package under the tests source root. I think IDEA should suggest to create such a package instead of showing the
error message. Feel free to fill a feature request about that in our tracker (http://youtrack.jetbrains.com/issues/IDEA).

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.