File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/test/java/org/springframework/hateoas Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,15 @@ void variableParameterIsTemplated() {
348348 assertThat (UriTemplate .isTemplate ("http://localhost/api/rest/v1/userGroups/50/functions/{?id*}" )).isTrue ();
349349 }
350350
351+ @ Test // #1696
352+ void adaptsRequestParamVariableToContinuationIfBaseUriContainsParameter () {
353+
354+ UriTemplate template = UriTemplate .of ("/path/{bar}/foo.zip?type=foo" )
355+ .with (new TemplateVariable ("foobar" , VariableType .REQUEST_PARAM ));
356+
357+ assertThat (template .toString ()).isEqualTo ("/path/{bar}/foo.zip?type=foo{&foobar}" );
358+ }
359+
351360 private static void assertVariables (UriTemplate template , TemplateVariable ... variables ) {
352361 assertVariables (template , Arrays .asList (variables ));
353362 }
You can’t perform that action at this time.
0 commit comments