Re: Using custom servlet for GWT-RPC with GWTTestCase

2016-08-04 Thread Thomas Broyer
On Thursday, August 4, 2016 at 9:26:27 PM UTC+2, Kay Pac wrote: > > I guess I am confused. I understand the need to do as much testing as > possible with regular JUnit/TestNG tests, which I try to do. What I don't > understand precisely is where the area of coverage for GWTTestCase is - >

Re: Using custom servlet for GWT-RPC with GWTTestCase

2016-08-04 Thread Kay Pac
I guess I am confused. I understand the need to do as much testing as possible with regular JUnit/TestNG tests, which I try to do. What I don't understand precisely is where the area of coverage for GWTTestCase is - it's some area between vanilla JUnit and Selenium/Webdriver, but it's clear I

Re: Using custom servlet for GWT-RPC with GWTTestCase

2016-08-04 Thread Thomas Broyer
JUnitShell support for is not meant for integration tests. You probably shouldn't try to use it that way. Either start a separate server (using CORS), or don't use a GWTTestCase (possibly use a dedicated GWT app and drive it through Selenium/WebDriver. -- You received this message because

Re: Using custom servlet for GWT-RPC with GWTTestCase

2016-08-03 Thread Kay Pac
I think my servlet element is working now, but I am having problems with Spring web context initialization, as Olivier was last year. I don't know how to resolve it, it might be necessary to make modifications to GWT in order for it the tests to work properly. On Thursday, July 28, 2016 at

Re: Using custom servlet for GWT-RPC with GWTTestCase

2016-07-28 Thread Kay Pac
This worked great for a while, but I think it broke at some point. I just don't know when it stopped working. I'm sure it is something on my end or in my code. But my element is no longer working. I've checked the jetty debug logging and the paths are matching, but jetty is still directing my

Re: Using custom servlet for GWT-RPC with GWTTestCase

2015-01-06 Thread Olivier M.
Hi, I'm learning GWT, trying to set up a Hello World project using Maven, Spring, GWT, Hibernate. I'm trying to add some unit tests. The same problem occurs for me, but I can't manage how to add a servlet element in the .gwt.xml module file. $ mvn gwt:test ... [INFO] Running

Re: Using custom servlet for GWT-RPC with GWTTestCase

2015-01-06 Thread Thomas Broyer
What did you try and what was the outcome? BTW, the servlet in gwt.xml has nothing to do with the servlet from WEB-INF/web.xml. See http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml for the description of the servlet element in gwt.xml files. In your

Re: Using custom servlet for GWT-RPC with GWTTestCase

2015-01-06 Thread Olivier M.
Merci Thomas (je continue en anglais) ;) I added your line (in a new .gwt.xml file) and added explicitly spring4gwt into the classpath (pom.xml modified). So it's much better. But now, I have to set up a Spring context to run the tests: $ mvn gwt:test [INFO] ... [INFO] Running

Re: Using custom servlet for GWT-RPC with GWTTestCase

2015-01-06 Thread Olivier M.
Thanks for your reply. So, I have to find another way. I saw gwt-test-utils, but it does not work with GWT-2.7. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Using custom servlet for GWT-RPC with GWTTestCase

2015-01-06 Thread Thomas Broyer
I don't know Spring well but I'd bet this is simply not possible. On Tuesday, January 6, 2015 2:27:29 PM UTC+1, Olivier M. wrote: Merci Thomas (je continue en anglais) ;) I added your line (in a new .gwt.xml file) and added explicitly spring4gwt into the classpath (pom.xml modified). So

Using custom servlet for GWT-RPC with GWTTestCase

2014-11-23 Thread Thomas Broyer
For tests with JUnitShell, the servlets have to be declared in the .gwt.XML file with a servlet element. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Using custom servlet for GWT-RPC with GWTTestCase

2014-11-22 Thread Kay Pac
Hi everyone, I am using spring4gwt, which is a servlet that allows me to use Spring DI with GWT-RPC servlets. It's a very simple wrapper that just provides the injected objects and I just use @RemoteServiceRelativePath to set the service URL properly so that it is directed to the correct