Skip to content

Commit cbce4a2

Browse files
committed
Disabled JSESSIONID for PrettyFaces tests as it breaks URL asserts
1 parent 72faafe commit cbce4a2

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎config-prettyfaces-tests/src/test/java/org/ocpsoft/rewrite/prettyfaces/PrettyFacesTestBase.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public abstract class PrettyFacesTestBase extends RewriteTest
3838
public static WebArchive getDeployment()
3939
{
4040
return RewriteTest.getDeploymentWithCDI()
41+
.setWebXML("web.xml")
4142
.addAsWebInfResource("faces-config.xml")
4243
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
4344
.addAsLibraries(getPrettyFacesArchive())
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
4+
5+
<!-- Disable JSESSIONID because it may break asserts on URLs -->
6+
<session-config>
7+
<tracking-mode>COOKIE</tracking-mode>
8+
</session-config>
9+
10+
</web-app>

0 commit comments

Comments
 (0)