提交 f85f13c5 编写于 作者: K kohsuke

Test cases can be now written in Groovy.

Hopefully this makes the test cases easiler to read/write.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20858 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4dbff6d7
......@@ -63,6 +63,7 @@ THE SOFTWARE.
<version>1.0-rc-5</version>
<executions>
<execution>
<id>preset-packager</id>
<phase>process-resources</phase>
<goals>
<goal>execute</goal>
......@@ -71,6 +72,14 @@ THE SOFTWARE.
<source>${pom.basedir}/src/main/preset-data/package.groovy</source>
</configuration>
</execution>
<execution>
<id>test-in-groovy</id>
<!-- allow tests written in Groovy -->
<goals>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
......
package hudson
import org.jvnet.hudson.test.HudsonTestCase
/**
* First g
*
* @author Kohsuke Kawaguchi
*/
public class GroovyTest extends HudsonTestCase {
void test1() {
def wc = createWebClient();
wc.goTo("/");
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册