+ @Test
+ fun testGetQueryParam() {
+ val restClientService = bluePrintRestLibPropertyService
+ .blueprintWebClientService("sample")
+ val response = restClientService.exchangeResource(
+ HttpMethod.GET.name, "/sample/query?id=3", ""
+ )
+ assertEquals(
+ "query with id:3", response.body,
+ "failed to get query param response"
+ )
+ }
+
+ @Test
+ fun testGetPathParamWithWhitespace() {
+ val restClientService = bluePrintRestLibPropertyService
+ .blueprintWebClientService("sample")
+ val response = restClientService.exchangeResource(
+ HttpMethod.GET.name, "/sample/path/id 3/get", ""
+ )
+ assertEquals(
+ "path param id:id 3", response.body,
+ "failed to get query param response"
+ )
+ }
+