Thorsten Rössner
2009-06-25 11:57:14 UTC
Hello everybody,
I'm in the development team of a new CMS which is based on Sling.
I want to use GWT for the GUI of the backend. For this purpose I adapted
the servlet in the contrib package of the Sling project to work with GWT
1.6.4. This works fine. I use the gwt-maven-plugin for creating the
bundles. In addition I got the hosted mode and debugging working, using
the Sling installation for server side code. Summing up, I can use GWT
for the backend GUI.
Now I want to test my GWT classes. GWT provides the test class
GWTTestCase, that are executed with the help of the gwt-maven-plugin.
The tests are running. The problem is, that I cant test my GWT classes
because they use services for getting data from the server per RPC. Does
anybody now, how to get the tests run in the Sling environment (the OSGi
environment)? I need the OSGi services and the repository for the tests.
Does anybody have an alternative method for testing GWT with Sling?
Thanks for your help.
Best regards
Thorsten
I'm in the development team of a new CMS which is based on Sling.
I want to use GWT for the GUI of the backend. For this purpose I adapted
the servlet in the contrib package of the Sling project to work with GWT
1.6.4. This works fine. I use the gwt-maven-plugin for creating the
bundles. In addition I got the hosted mode and debugging working, using
the Sling installation for server side code. Summing up, I can use GWT
for the backend GUI.
Now I want to test my GWT classes. GWT provides the test class
GWTTestCase, that are executed with the help of the gwt-maven-plugin.
The tests are running. The problem is, that I cant test my GWT classes
because they use services for getting data from the server per RPC. Does
anybody now, how to get the tests run in the Sling environment (the OSGi
environment)? I need the OSGi services and the repository for the tests.
Does anybody have an alternative method for testing GWT with Sling?
Thanks for your help.
Best regards
Thorsten