Skip to content

Commit 53d7f04

Browse files
committed
Fixed OutcomeEncodingTest to use unencoded query strings as outcomes
1 parent b5ea26e commit 53d7f04

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎integration-faces/src/test/java/org/ocpsoft/rewrite/faces/outcome/OutcomeEncodingBean.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ public String redirectSimple()
4545

4646
public String redirectWithSpace()
4747
{
48-
return "/page.xhtml?faces-redirect=true&param=foo+bar&query=foo+bar";
48+
return "/page.xhtml?faces-redirect=true&param=foo bar&query=foo bar";
4949
}
5050

5151
public String redirectWithEqual()
5252
{
5353

54-
return "/page.xhtml?faces-redirect=true&param=foo%3Dbar&query=foo%3Dbar";
54+
return "/page.xhtml?faces-redirect=true&param=foo=bar&query=foo=bar";
5555
}
5656

5757
public String redirectWithAmpersand()
5858
{
59-
return "/page.xhtml?faces-redirect=true&param=foo%26bar&query=foo%26bar";
59+
return "/page.xhtml?faces-redirect=true&param=foo&bar&query=foo&bar";
6060
}
6161

6262
}

‎integration-faces/src/test/java/org/ocpsoft/rewrite/faces/outcome/OutcomeEncodingTest.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public void testOutcomeRedirectSimple() throws Exception
5656
}
5757

5858
@Test
59-
// TODO: Fix this
60-
@Ignore
6159
public void testOutcomeRedirectWithSpace() throws Exception
6260
{
6361

@@ -69,7 +67,7 @@ public void testOutcomeRedirectWithSpace() throws Exception
6967
}
7068

7169
@Test
72-
// TODO: Fix this
70+
// TODO: Why doesn't this work
7371
@Ignore
7472
public void testOutcomeRedirectWithEqual() throws Exception
7573
{
@@ -82,7 +80,7 @@ public void testOutcomeRedirectWithEqual() throws Exception
8280
}
8381

8482
@Test
85-
// TODO: Fix this
83+
// Seems like ampersands are not really supported by JSF outcomes
8684
@Ignore
8785
public void testOutcomeRedirectWithAmpersand() throws Exception
8886
{

0 commit comments

Comments
 (0)