KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > validator > rules > groovy > GroovyRuleTest


1 package org.sapia.validator.rules.groovy;
2
3 import org.sapia.validator.rules.groovy.GroovyRule;
4
5 import junit.framework.TestCase;
6
7 /**
8  * @author Yanick Duchesne
9  *
10  * <dl>
11  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public class GroovyRuleTest extends TestCase{
17   
18   public GroovyRuleTest(String JavaDoc name){
19     super(name);
20   }
21   
22   public void testOnCreate() throws Exception JavaDoc{
23     GroovyRule g = new GroovyRule();
24     //g.setId("someId");
25
g.setText("println(\"Validating...\");");
26     g.onCreate();
27   }
28
29 }
30
Popular Tags