KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > webFlow > WebFlowTest


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 JavaDoc;
7 import java.io.StringWriter JavaDoc;
8
9 /**
10  * User: plightbo
11  * Date: Jun 25, 2005
12  * Time: 4:18:28 PM
13  */

14 public class WebFlowTest extends WebWorkTestCase {
15     public void testWebFlow() {
16         String JavaDoc dir = "src/test/com/opensymphony/webwork/webFlow";
17         WebFlow webFlow = new WebFlow(dir, dir, dir, "");
18         StringWriter JavaDoc writer = new StringWriter JavaDoc();
19         webFlow.setWriter(writer);
20         webFlow.prepare();
21
22         String JavaDoc out = "src/test/com/opensymphony/webwork/webFlow/out.txt";
23         assertEquals(FileUtils.readFile(new File JavaDoc(out)), writer.toString());
24     }
25 }
26
Popular Tags