1 package com.opensymphony.webwork.webFlow; 2 3 import com.opensymphony.util.FileUtils; 4 import com.opensymphony.webwork.WebWorkTestCase; 5 6 import java.io.File ; 7 import java.io.StringWriter ; 8 9 14 public class WebFlowTest extends WebWorkTestCase { 15 public void testWebFlow() { 16 String dir = "src/test/com/opensymphony/webwork/webFlow"; 17 WebFlow webFlow = new WebFlow(dir, dir, dir, ""); 18 StringWriter writer = new StringWriter (); 19 webFlow.setWriter(writer); 20 webFlow.prepare(); 21 22 String out = "src/test/com/opensymphony/webwork/webFlow/out.txt"; 23 assertEquals(FileUtils.readFile(new File (out)), writer.toString()); 24 } 25 } 26 | Popular Tags |