des09 / ktrwjr

Automatically exported from code.google.com/p/ktrwjr
0 stars 0 forks source link

error with GWTTestCase #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Encountered on OS / Browser (e.g. WinXP, IE8, FF3):

all

Encountered on the production server or the development server?

both

Detailed description (please be as specific as possible):

When I try to run a gwttest I receive this error:

com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract bufferings.ktr.wjr.shared.model.WjrStore 
bufferings.ktr.wjr.client.service.KtrWjrService.loadStore(java.util.Map)' threw 
an unexpected exception: java.lang.NoClassDefFoundError: 
com/google/gwt/junit/client/GWTTestCase
    at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

Original issue reported on code.google.com by acerezoguillen on 10 Jun 2010 at 8:59

GoogleCodeExporter commented 9 years ago
ok I will check that.

Original comment by bufferi...@gmail.com on 11 Jun 2010 at 4:54

GoogleCodeExporter commented 9 years ago
Hi acerezoguillen,

I'm sorry. GWTTestCase is not supported by ktrwjr.

If you have GWTTestCase tests in your application,
please put them in another source folder and
set its output dir except war/WEB-INF/classes.

The reasons why ktrwjr does not support GWTTestCase are
1) It is run on complex mechanism using JUnitShell.
2) It is client side testing.

I think second reason is important.

GWTTestCase is prepared for client side testing,
and ktrwjr is for server side testing.

If you run client side tests and find them all green(both on the dev mode and 
the web mode),
you don't need to run it on the production server.
Because the results shouldn't depend on the server environment.

Thank you.
- bufferings

Original comment by bufferi...@gmail.com on 12 Jun 2010 at 2:15

GoogleCodeExporter commented 9 years ago

Original comment by bufferi...@gmail.com on 2 Jan 2011 at 2:56