01: /**
02: * Copyright: Copyright (c) From Down & Around, Inc.
03: */package com.opensymphony.webwork.views.jsp.ui;
04:
05: import com.opensymphony.webwork.views.jsp.AbstractUITagTest;
06:
07: /**
08: * @author Ian Roughley
09: * @version $Id: SubmitAjaxTest.java 2335 2006-03-08 18:09:29Z rainerh $
10: */
11: public class SubmitAjaxTest extends AbstractUITagTest {
12:
13: public void testSimple() throws Exception {
14: SubmitTag tag = new SubmitTag();
15: tag.setPageContext(pageContext);
16:
17: tag.setId("mylink");
18: tag.setValue("submit");
19: tag.setTheme("ajax");
20: tag.setResultDivId("formId");
21: tag.setOnLoadJS("alert('form submitted');");
22: tag.setListenTopics("a");
23: tag.setNotifyTopics("b");
24:
25: tag.doStartTag();
26: tag.doEndTag();
27:
28: verify(AnchorTest.class.getResource("submit-ajax-1.txt"));
29: }
30:
31: }
|