| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2004, 2005 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <mock-test> |
| <context name="mock" root="context51" /> |
| |
| <servlet name="app" class="org.apache.tapestry.ApplicationServlet"> |
| <init-parameter |
| name="org.apache.tapestry.application-specification" |
| value="/org/apache/tapestry/junit/mock/wml/Mock.application" /> |
| <init-parameter |
| name="org.apache.tapestry.application-mode" value="wml" /> |
| </servlet> |
| |
| <request> |
| <parameter name="service" value="page" /> |
| <parameter name="page" value="Stale" /> |
| |
| <assert-output name="Do component"> |
| <![CDATA[ |
| <do type="prev"> |
| ]]> |
| </assert-output> |
| |
| <assert-output name="Card"> |
| <![CDATA[ |
| <card id="StaleSession"> |
| ]]> |
| </assert-output> |
| |
| <assert-output name="DirectLink URL"> |
| <![CDATA[ |
| href="/mock/app?component=directLink&page=Stale&service=direct" |
| ]]> |
| </assert-output> |
| |
| <assert-output-matches name="Go Parameter Names" subgroup="1"> |
| <![CDATA[ |
| <postfield name="(.*?)".*?/> |
| ]]> |
| <match>formids</match> |
| <match>seedids</match> |
| <match>component</match> |
| <match>page</match> |
| <match>service</match> |
| <match>submitmode</match> |
| <match>submitname</match> |
| </assert-output-matches> |
| |
| <assert-output-matches name="Go Parameter Values" subgroup="1"> |
| <![CDATA[ |
| <postfield .*?value="(.*?)" /> |
| ]]> |
| <match></match> |
| <match>ZH4sIAAAAAAAAAFvzloG1PIEhTqc4tagsMzlVxUCnIDEdRCXn5xbk56XmlYDZeSWJmXmpRUB2cWpxcWZ+HohVACRc8oFEcEliTmowXCIlsyg1ucQnMy8byEkHKgAAGmRtGWYAAAA=</match> |
| <match>go</match> |
| <match>Stale</match> |
| <match>direct</match> |
| <match></match> |
| <match></match> |
| </assert-output-matches> |
| |
| </request> |
| |
| <request> |
| <parameter name="service" value="direct" /> |
| <parameter name="session" value="T" /> |
| <parameter name="page" value="Stale" /> |
| <parameter name="component" value="directLink" /> |
| |
| |
| <assert-output name="StaleSession (DirectLink)"> |
| <![CDATA[ |
| <card id="StaleSession" title="StaleSession"> |
| ]]> |
| </assert-output> |
| </request> |
| |
| <request> |
| <parameter name="service" value="direct" /> |
| <parameter name="session" value="T" /> |
| <parameter name="page" value="Stale" /> |
| <parameter name="component" value="go" /> |
| |
| <parameter name="formids" value="" /> |
| |
| <assert-output name="StaleSession (Go)"> |
| <![CDATA[ |
| <card id="StaleSession" title="StaleSession"> |
| ]]> |
| </assert-output> |
| </request> |
| |
| </mock-test> |
| |