Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tandraschko committed Jul 28, 2024
1 parent 4aba85a commit d6064e6
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0" metadata-complete="true">
<name>a</name>
<absolute-ordering>
<name>b</name>
<name>c</name>
<others/>
<name>d</name>
</absolute-ordering>
</faces-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you 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.
-->

<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<application>
<action-listener>action-listener1</action-listener>
<action-listener>action-listener2</action-listener>
<default-render-kit-id>default-render-kit-id</default-render-kit-id>
<locale-config>
<default-locale>aa</default-locale>
<supported-locale>aa</supported-locale>
<supported-locale>bb</supported-locale>
</locale-config>
<message-bundle>message-bundle</message-bundle>
<navigation-handler>navigation-handler</navigation-handler>
<property-resolver>property-resolver</property-resolver>
<state-manager>state-manager</state-manager>
<variable-resolver>variable-resolver</variable-resolver>
<view-handler>view-handler</view-handler>

<!-- 1.2 specific -->
<el-resolver>el-resolver</el-resolver>
<resource-bundle>
<base-name>base-name</base-name>
<var>var</var>
</resource-bundle>
</application>
</faces-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<application>
<resource-library-contracts>
<contract-mapping>
<url-pattern>/files/*.xhtml</url-pattern>
<url-pattern>/files2/*.xhtml</url-pattern>
<contracts>contractA</contracts>
<contracts>contractB</contracts>
</contract-mapping>
</resource-library-contracts>
</application>
<protected-views>
<url-pattern>/files/*.xhtml</url-pattern>
<url-pattern>/files2/*.xhtml</url-pattern>
</protected-views>
</faces-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<application>
<resource-library-contracts>
<contract-mapping>
<url-pattern>/files/*.xhtml</url-pattern>
<contracts>contractA contractB</contracts>
</contract-mapping>
</resource-library-contracts>
</application>
<protected-views>
<url-pattern>/files/*.xhtml</url-pattern>
<url-pattern>/files2/*.xhtml</url-pattern>
</protected-views>
</faces-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you 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.
-->

<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
</faces-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<flow-definition id="flow1">
<start-node>node1</start-node>
<view id="outcome2">
<vdl-document>outcome-to-2.xhtml</vdl-document>
</view>
<switch id="switch1">
<navigation-case>
<if>#{flowBean.token > 0}</if>
<from-outcome>outcome2</from-outcome>
</navigation-case>
<default-outcome>
<from-outcome>outcome2</from-outcome>
</default-outcome>
</switch>
<flow-return id="flowReturn1">
<navigation-case>
<from-outcome>/outcome1</from-outcome>
</navigation-case>
</flow-return>
<navigation-rule>
<from-view-id>/x.xhtml</from-view-id>
<navigation-case>
<from-outcome>go</from-outcome>
<if>#{test.true}</if>
<to-view-id>/y.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<flow-call id="flowCall">
<flow-reference>
<flow-id>flow2</flow-id>
</flow-reference>
<outbound-parameter>
<name>name1</name>
<value>value1</value>
</outbound-parameter>
</flow-call>
<method-call>
<method id="method1">#{flowBean.doSomething}</method>
<default-outcome>outcome2</default-outcome>
</method-call>
<initializer>#{flowBean.init}</initializer>
<finalizer>#{flowBean.finalize}</finalizer>
<inbound-parameter>
<name>name1</name>
<value>value1</value>
</inbound-parameter>
</flow-definition>
</faces-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<name>a</name>
<ordering>
<after>
<name>d</name>
</after>
<before>
<name>b</name>
<name>c</name>
<others/>
</before>
</ordering>
</faces-config>

0 comments on commit d6064e6

Please sign in to comment.