diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-03-06 20:37:09 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-03-06 20:37:09 +0000 |
commit | 0bdc3d31267ddf00d486a122d40e06b72a1ec4a7 (patch) | |
tree | 53a7424b4a9017168814d63ea5f298d51539d9a5 /archetype/src/main/resources | |
parent | 295867b35ae9eb2d483367b903cf6bbd8131e2be (diff) | |
download | gwtquery-0bdc3d31267ddf00d486a122d40e06b72a1ec4a7.tar.gz gwtquery-0bdc3d31267ddf00d486a122d40e06b72a1ec4a7.zip |
Update tests to the last gquery api, fixes issue_70
Diffstat (limited to 'archetype/src/main/resources')
-rw-r--r-- | archetype/src/main/resources/archetype-resources/pom.xml | 18 | ||||
-rw-r--r-- | archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java | 3 |
2 files changed, 19 insertions, 2 deletions
diff --git a/archetype/src/main/resources/archetype-resources/pom.xml b/archetype/src/main/resources/archetype-resources/pom.xml index 8a3c610f..96d01cfa 100644 --- a/archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetype/src/main/resources/archetype-resources/pom.xml @@ -13,6 +13,7 @@ <maven.compiler.target>1.5</maven.compiler.target>
<gQueryVersion>1.0.0-SNAPSHOT</gQueryVersion>
<gwtversion>2.2.0</gwtversion>
+ <!-- change by 2.1.0-1 for gwt-2.1.1 or 2.1.0 for gwt-2.1.0 -->
<gwtmaven>2.1.0-1</gwtmaven>
</properties>
@@ -129,6 +130,23 @@ </filesets>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <additionalBuildcommands>
+ <buildCommand>
+ <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
+ </buildCommand>
+ </additionalBuildcommands>
+ <additionalProjectnatures>
+ <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
+ </additionalProjectnatures>
+ </configuration>
+ </plugin>
</plugins>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
</build>
</project>
diff --git a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java index ef0a7fef..cb4fc699 100644 --- a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java +++ b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java @@ -5,7 +5,6 @@ package ${package}.${artifactId}.client; import static com.google.gwt.query.client.GQuery.*; import com.google.gwt.junit.client.GWTTestCase; -import com.google.gwt.query.client.GQUtils; import com.google.gwt.query.client.GQuery; import com.google.gwt.query.client.plugins.Effects.Speed; import com.google.gwt.user.client.Event; @@ -20,7 +19,7 @@ public class ${projectName}Test extends GWTTestCase { } private double fontSize(GQuery g) { - return GQUtils.cur(g.get(0), "fontSize", true); + return $(g).cur("fontSize", true); } public void testOnModuleLoad() { |