Author: craigmcc
Date: Tue Feb 8 21:12:55 2005
New Revision: 153018
URL: http://svn.apache.org/viewcvs?view=rev&rev=153018
Log:
Add a bunch of component ids to make it easier to write a system integration
test (based on HtmlUnit 1.4 and JUnit) that can click its way through the
Use Cases application and vaidate the results.
Modified:
struts/shale/trunk/use-cases/src/web/subview/alpha.jsp
struts/shale/trunk/use-cases/src/web/subview/beta.jsp
struts/shale/trunk/use-cases/src/web/subview/delta.jsp
struts/shale/trunk/use-cases/src/web/subview/first.jsp
struts/shale/trunk/use-cases/src/web/subview/gamma.jsp
struts/shale/trunk/use-cases/src/web/subview/second.jsp
struts/shale/trunk/use-cases/src/web/usecases.jsp
Modified: struts/shale/trunk/use-cases/src/web/subview/alpha.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/alpha.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/alpha.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/subview/alpha.jsp Tue Feb 8 21:12:55
2005
@@ -20,4 +20,5 @@
--%>
-<h:outputText value="This is the alpha dynamic include"/>
+<h:outputText id="alpha"
+ value="This is the alpha dynamic include"/>
Modified: struts/shale/trunk/use-cases/src/web/subview/beta.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/beta.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/beta.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/subview/beta.jsp Tue Feb 8 21:12:55
2005
@@ -20,4 +20,5 @@
--%>
-<h:outputText value="This is the beta dynamic include"/>
+<h:outputText id="beta"
+ value="This is the beta dynamic include"/>
Modified: struts/shale/trunk/use-cases/src/web/subview/delta.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/delta.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/delta.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/subview/delta.jsp Tue Feb 8 21:12:55
2005
@@ -20,4 +20,5 @@
--%>
-<h:outputText value="This is the delta dynamic include"/>
+<h:outputText id="delta"
+ value="This is the delta dynamic include"/>
Modified: struts/shale/trunk/use-cases/src/web/subview/first.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/first.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/first.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/subview/first.jsp Tue Feb 8 21:12:55
2005
@@ -31,9 +31,10 @@
</head>
<body>
- <h:form>
+ <h:form id="form">
- <h:panelGrid columns="1">
+ <h:panelGrid id="grid"
+ columns="1">
<s:subview id="subview_alpha">
<jsp:include page="/subview/alpha.jsp"/>
@@ -45,12 +46,14 @@
<h:panelGroup>
<h:outputText value="#{messages['subview.expected']}"/>
- <h:outputText value="#{subview$first.expected}"/>
+ <h:outputText id="expected"
+ value="#{subview$first.expected}"/>
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{messages['subview.actual']}"/>
- <h:outputText value="#{actual}"/>
+ <h:outputText id="actual"
+ value="#{actual}"/>
</h:panelGroup>
<h:commandButton id="continue"
Modified: struts/shale/trunk/use-cases/src/web/subview/gamma.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/gamma.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/gamma.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/subview/gamma.jsp Tue Feb 8 21:12:55
2005
@@ -20,4 +20,5 @@
--%>
-<h:outputText value="This is the gamma dynamic include"/>
+<h:outputText id="gamma"
+ value="This is the gamma dynamic include"/>
Modified: struts/shale/trunk/use-cases/src/web/subview/second.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/second.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/second.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/subview/second.jsp Tue Feb 8 21:12:55
2005
@@ -31,7 +31,7 @@
</head>
<body>
- <h:form>
+ <h:form id="form">
<h:panelGrid columns="1">
@@ -45,12 +45,14 @@
<h:panelGroup>
<h:outputText value="#{messages['subview.expected']}"/>
- <h:outputText value="#{subview$second.expected}"/>
+ <h:outputText id="expected"
+ value="#{subview$second.expected}"/>
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{messages['subview.actual']}"/>
- <h:outputText value="#{actual}"/>
+ <h:outputText id="actual"
+ value="#{actual}"/>
</h:panelGroup>
<%-- Submits back to this page --%>
Modified: struts/shale/trunk/use-cases/src/web/usecases.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/usecases.jsp?view=diff&r1=153017&r2=153018
==============================================================================
--- struts/shale/trunk/use-cases/src/web/usecases.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/usecases.jsp Tue Feb 8 21:12:55 2005
@@ -47,26 +47,31 @@
</h:panelGroup>
</f:facet>
- <h:commandLink action="locale$select">
+ <h:commandLink id="locale"
+ action="locale$select">
<h:outputText value="#{messages['usecases.locale']}"/>
</h:commandLink>
- <h:commandLink action="#{logon$dialog.enter}"
+ <h:commandLink id="logon"
+ action="#{logon$dialog.enter}"
rendered="#{empty user}">
<h:outputText value="#{messages['usecases.logon']}"/>
</h:commandLink>
- <h:commandLink action="#{logon$dialog.edit}"
+ <h:commandLink id="edit"
+ action="#{logon$dialog.edit}"
rendered="#{!(empty user)}">
<h:outputText value="#{messages['usecases.edit']}"/>
</h:commandLink>
- <h:commandLink action="#{logon$dialog.logoff}"
+ <h:commandLink id="logoff"
+ action="#{logon$dialog.logoff}"
rendered="#{!(empty user)}">
<h:outputText value="#{messages['usecases.logoff']}"/>
</h:commandLink>
- <h:commandLink action="subview$first">
+ <h:commandLink id="subview"
+ action="subview$first">
<h:outputText value="#{messages['usecases.subview']}"/>
</h:commandLink>
@@ -83,12 +88,14 @@
<h:panelGrid columns="1">
- <h:outputLink value="list/supportedCategories.remote"
+ <h:outputLink id="javaCategories"
+ value="list/supportedCategories.remote"
target="_new">
<h:outputText value="#{messages['usecases.categories']}"/>
</h:outputLink>
- <h:outputLink value="list/supportedLocales.remote"
+ <h:outputLink id="javaLocales"
+ value="list/supportedLocales.remote"
target="_new">
<h:outputText value="#{messages['usecases.locales']}"/>
</h:outputLink>
@@ -99,11 +106,13 @@
<h:panelGrid columns="1">
- <h:commandLink action="lookup$listCategories">
+ <h:commandLink id="jspCategories"
+ action="lookup$listCategories">
<h:outputText value="#{messages['usecases.categories']}"/>
</h:commandLink>
- <h:commandLink action="lookup$listLocales">
+ <h:commandLink id="jspLocales"
+ action="lookup$listLocales">
<h:outputText value="#{messages['usecases.locales']}"/>
</h:commandLink>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]