Fix LookupPath parsing

Issue: SPR-15397
This commit is contained in:
Brian Clozel
2017-06-02 09:26:35 +02:00
parent 4d52590964
commit 74fb2645fd
2 changed files with 14 additions and 29 deletions

View File

@@ -46,11 +46,10 @@ public class LookupPathTests {
@Test
public void parsePathWithParams() {
LookupPath path = create("/test/foo.txt;foo=bar?framework=spring");
assertEquals("/test/foo.txt;foo=bar", path.getPath());
assertEquals("/test/foo", path.getPathWithoutExtension());
LookupPath path = create("/test;spring=framework/foo.txt;foo=bar?framework=spring");
assertEquals("/test;spring=framework/foo.txt;foo=bar", path.getPath());
assertEquals("/test;spring=framework/foo", path.getPathWithoutExtension());
assertEquals(".txt", path.getFileExtension());
assertEquals("foo=bar", path.getPathParameters());
}
private LookupPath create(String path) {