]> source.dussan.org Git - gwtquery.git/commitdiff
fixed run tests in archetype from command line
authorManolo Carrasco <manolo@apache.org>
Sat, 31 Jul 2010 08:11:01 +0000 (08:11 +0000)
committerManolo Carrasco <manolo@apache.org>
Sat, 31 Jul 2010 08:11:01 +0000 (08:11 +0000)
archetype/src/main/resources/archetype-resources/pom.xml
archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java

index 3826e2eac1cf51b64634b6d4922a2940bad997d2..dbec1ee70af4878b22d82d734709ef8ead5932e0 100644 (file)
@@ -12,7 +12,7 @@
       <maven.compiler.source>1.5</maven.compiler.source>\r
       <maven.compiler.target>1.5</maven.compiler.target>\r
       <gQueryVersion>1.0.0-SNAPSHOT</gQueryVersion>\r
-      <gwtversion>2.0.3</gwtversion>\r
+      <gwtversion>2.0.4</gwtversion>\r
     </properties>\r
 \r
     <repositories>\r
             <version>3.8.1</version>\r
             <scope>test</scope>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>com.google.gwt</groupId>\r
+            <artifactId>gwt-user</artifactId>\r
+            <version>${gwtversion}</version>\r
+            <scope>provided</scope>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>com.google.gwt</groupId>\r
+            <artifactId>gwt-dev</artifactId>\r
+            <version>${gwtversion}</version>\r
+            <scope>provided</scope>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>com.google.gwt</groupId>\r
+            <artifactId>gwt-servlet</artifactId>\r
+            <version>${gwtversion}</version>\r
+            <scope>runtime</scope>\r
+        </dependency>\r
         <dependency>\r
             <groupId>com.google.gwt</groupId>\r
             <artifactId>gwtquery</artifactId>\r
                     </execution>\r
                 </executions>\r
             </plugin>\r
+            <plugin>\r
+               <artifactId>maven-surefire-plugin</artifactId>\r
+               <configuration>\r
+                 <additionalClasspathElements>\r
+                   <additionalClasspathElement>\${project.build.sourceDirectory}</additionalClasspathElement>\r
+                   <additionalClasspathElement>\${project.build.testSourceDirectory}</additionalClasspathElement>\r
+                 </additionalClasspathElements>\r
+                 <useManifestOnlyJar>false</useManifestOnlyJar>\r
+                 <forkMode>always</forkMode>\r
+                 <systemProperties>\r
+                   <property>\r
+                     <name>gwt.args</name>\r
+                     <value>-out target/www</value>\r
+                   </property>\r
+                 </systemProperties>\r
+               </configuration>\r
+            </plugin>\r
             <plugin>\r
               <artifactId>maven-clean-plugin</artifactId>\r
               <configuration>\r
index 129f1fea073836d1fc90aa892de6237755f74ee4..7ba9d631142f3472c385075d839805362b69e1d6 100644 (file)
@@ -11,7 +11,7 @@ import com.google.gwt.query.client.plugins.Effects.Speed;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.Timer;
 /**
- * Test class for ${projecName} entry-point
+ * Test class for ${projectName} entry-point
  */
 public class ${projectName}Test extends GWTTestCase {
 
@@ -29,7 +29,7 @@ public class ${projectName}Test extends GWTTestCase {
     final GQuery g =  $("<div></div>").appendTo(document);
 
     // run onModuleLoad
-    Art a = new Art();
+    ${projectName} a = new ${projectName}();
     a.onModuleLoad();
 
     // delay the test