1 16 17 package org.apache.cocoon.generation; 18 19 import org.apache.avalon.framework.parameters.Parameters; 20 import org.apache.cocoon.SitemapComponentTestCase; 21 22 28 public class TextGeneratorTestCase extends SitemapComponentTestCase { 29 30 public void testTextGenerator1() throws Exception { 31 String src = "resource://org/apache/cocoon/generation/texttest-input1.txt"; 32 Parameters parameters = new Parameters(); 33 String result = "resource://org/apache/cocoon/generation/texttest-result1.xml"; 34 35 assertEqual(load(result), generate("text", src, parameters)); 36 } 37 38 public void testTextGenerator2() throws Exception { 39 40 String src = "resource://org/apache/cocoon/generation/texttest-input2.txt"; 41 Parameters parameters = new Parameters(); 42 String result = "resource://org/apache/cocoon/generation/texttest-result2.xml"; 43 44 assertEqual(load(result), generate("text", src, parameters)); 45 } 46 } 47 | Popular Tags |