1 38 package com.gargoylesoftware.htmlunit; 39 40 import java.io.File; 41 42 import junit.framework.Test; 43 import junit.framework.TestSuite; 44 45 import org.apache.commons.jelly.JellyContext; 46 import org.apache.commons.jelly.XMLOutput; 47 48 49 55 public class JellyTest extends WebTestCase { 56 57 62 public JellyTest( final String name ) { 63 super( name ); 64 } 65 66 72 public static Test suite() throws Exception { 73 final XMLOutput output = XMLOutput.createXMLOutput(System.out); 74 final File file = getFileObject("src/test/jelly/com/gargoylesoftware/htmlunit/WebClient.jelly"); 75 final JellyContext context = new JellyContext().runScript(file, output); 76 final TestSuite answer = (TestSuite) context.getVariable("org.apache.commons.jelly.junit.suite"); 77 if ( answer == null ) { 78 System.out.println( "Could not find a TestSuite created by Jelly for the script:" + file ); 79 return new TestSuite(); 81 } 82 return answer; 83 } 84 87 public void testNothing() { 88 } 89 } 90 | Popular Tags |