Skip to content

Commit a41e4e0

Browse files
committed
Attempt to run GwtTest
1 parent 7fd86a0 commit a41e4e0

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ Now, we add GWT (gwt-servlet and gwt-user artifacts) and Log4J to our project.
6060
<artifactId>spring-orm</artifactId>
6161
<version>${spring.version}</version>
6262
</dependency>
63+
<dependency>
64+
<groupId>org.spring4gwt</groupId>
65+
<artifactId>spring4gwt</artifactId>
66+
<version>${spring4gwt.version}</version>
67+
<scope>system</scope>
68+
<systemPath>${project.basedir}/target/hellogwt/WEB-INF/lib/spring4gwt-${spring4gwt.version}.jar</systemPath>
69+
</dependency>
6370

6471
<!-- GWT -->
6572
<dependency>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
XML module file for testing the com.hellogwt package.
4+
-->
5+
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
6+
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
7+
<module rename-to="hellogwt">
8+
<inherits name="com.hellogwt.HelloGWT"/>
9+
<servlet path="/springGwtServices/greetingService" class="org.spring4gwt.server.SpringGwtRemoteServiceServlet"/>
10+
</module>

src/test/java/com/hellogwt/client/GwtTestGreetingService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121
import com.google.gwt.user.client.rpc.ServiceDefTarget;
2222

2323
/**
24-
*
25-
* @author Olivier Maury <Olivier.Maury@paca.inra.fr>
24+
* Testing a RPC service.
2625
*/
2726
public class GwtTestGreetingService extends GWTTestCase {
2827

2928
@Override
3029
public String getModuleName() {
31-
return "com.hellogwt.HelloGWT";
30+
return "com.hellogwt.HelloGWTJUnit";
3231
}
3332

3433
/**

src/test/java/com/hellogwt/shared/GwtTestSimple.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class GwtTestSimple extends GWTTestCase {
2929
*/
3030
@Override
3131
public String getModuleName() {
32-
return "com.hellogwt.HelloGWT";
32+
return "com.hellogwt.HelloGWTJUnit";
3333
}
3434

3535
public void testSimple() {

0 commit comments

Comments
 (0)