Skip to content

Commit a69bcd7

Browse files
committed
Test correct encoding of & character
1 parent 2e11e1c commit a69bcd7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/test/java/org/ocpsoft/urlbuilder/util/EncoderTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public void testPath()
1616
assertEquals("%5Btest%5D", Encoder.path("[test]"));
1717
assertEquals("%22a%22", Encoder.path("\"a\""));
1818
assertEquals("Really%3F", Encoder.path("Really?"));
19+
assertEquals("foo%26bar", Encoder.path("foo&bar"));
1920
}
2021

2122
@Test

0 commit comments

Comments
 (0)