SPR-5973: Changed UriComponent from inner type to top-level enum
This commit is contained in:
@@ -38,6 +38,14 @@ public class UriBuilderTests {
|
||||
assertEquals("Invalid result URI", expected, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void fromPath() throws URISyntaxException {
|
||||
URI result = UriBuilder.fromPath("foo").queryParam("bar").fragment("baz").build();
|
||||
|
||||
URI expected = new URI("/foo?bar#baz");
|
||||
assertEquals("Invalid result URI", expected, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void fromUri() throws URISyntaxException {
|
||||
URI uri = new URI("http://example.com/foo?bar#baz");
|
||||
|
||||
Reference in New Issue
Block a user