@Test void testCreateEntitiesUriPath() { String entityTypeId = "MyEntityTypeId"; String idAttributeName = "MyIdAttribute"; Collection<String> entityIds = asList("MyEntityId0", "MyEntityId1"); assertEquals( "/myservlet/api/v2/MyEntityTypeId?q=MyIdAttribute=in=(\"MyEntityId0\",\"MyEntityId1\")", createEntitiesUriPath(uriBuilder, entityTypeId, idAttributeName, entityIds)); }
static String createEntitiesUriPath( ServletUriComponentsBuilder builder, String entityTypeId, String idAttributeName, Collection<String> entityIds) { String path = createEntitiesUriComponents(builder, entityTypeId, idAttributeName, entityIds).getPath(); String query = createEntitiesUriQuery(idAttributeName, entityIds); return path + '?' + query; }
UriUtils { static String createEntitiesUriPath( ServletUriComponentsBuilder builder, String entityTypeId, String idAttributeName, Collection<String> entityIds) { String path = createEntitiesUriComponents(builder, entityTypeId, idAttributeName, entityIds).getPath(); String query = createEntitiesUriQuery(idAttributeName, entityIds); return path + '?' + query; } }
UriUtils { static String createEntitiesUriPath( ServletUriComponentsBuilder builder, String entityTypeId, String idAttributeName, Collection<String> entityIds) { String path = createEntitiesUriComponents(builder, entityTypeId, idAttributeName, entityIds).getPath(); String query = createEntitiesUriQuery(idAttributeName, entityIds); return path + '?' + query; } private  UriUtils(); }
UriUtils { static String createEntitiesUriPath( ServletUriComponentsBuilder builder, String entityTypeId, String idAttributeName, Collection<String> entityIds) { String path = createEntitiesUriComponents(builder, entityTypeId, idAttributeName, entityIds).getPath(); String query = createEntitiesUriQuery(idAttributeName, entityIds); return path + '?' + query; } private  UriUtils();  }
UriUtils { static String createEntitiesUriPath( ServletUriComponentsBuilder builder, String entityTypeId, String idAttributeName, Collection<String> entityIds) { String path = createEntitiesUriComponents(builder, entityTypeId, idAttributeName, entityIds).getPath(); String query = createEntitiesUriQuery(idAttributeName, entityIds); return path + '?' + query; } private  UriUtils();   }