01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.jsp.ui;
06:
07: import com.opensymphony.webwork.components.AbstractRichtexteditorConnector;
08:
09: /**
10: *
11: * @author tm_jee
12: * @version $Date: 2006-02-17 16:21:02 +0100 (Fri, 17 Feb 2006) $ $Id: RichtexteditorCreateFolderResultTest.java 2199 2006-02-17 15:21:02Z tmjee $
13: */
14: public class RichtexteditorCreateFolderResultTest extends
15: AbstractRichtexteditorTest {
16:
17: public void testExecuteResult() throws Exception {
18: invocation.getStack().getContext().put(
19: "__richtexteditorCreateFolder",
20: AbstractRichtexteditorConnector.CreateFolderResult
21: .noErrors());
22: invocation.getStack().getContext().put(
23: "__richtexteditorCommand", "CreateFolder");
24: invocation.getStack().getContext().put("__richtexteditorType",
25: "Image");
26: invocation.getStack().getContext().put(
27: "__richtexteditorFolderPath", "/folder/path/");
28: invocation.getStack().getContext().put(
29: "__richtexteditorServerPath", "/server/path/");
30:
31: RichtexteditorCreateFolderResult result = new RichtexteditorCreateFolderResult();
32: result.execute(invocation);
33:
34: verify(RichtexteditorCreateFolderResultTest.class
35: .getResourceAsStream("RichtexteditorCreateFolderResultTest1.txt"));
36: }
37: }
|