You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Ian Boston (JIRA)" <ji...@apache.org> on 2008/10/07 11:31:44 UTC

[jira] Commented: (SHINDIG-562) Modify BeanXmlConveter to output properly formatted xml.

    [ https://issues.apache.org/jira/browse/SHINDIG-562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637428#action_12637428 ] 

Ian Boston commented on SHINDIG-562:
------------------------------------

1. 
The empty lists appear to be Ok, the following unit test passes.

 public void testEmptyList() throws XmlException {
    List<String> empty = new ArrayList<String>();
    String xml = beanXmlConverter.convertToXml(empty);
    XmlUtil.parse(xml);
    String expectedXml =
      "<response/>";
    assertEquals(expectedXml, StringUtils.deleteWhitespace(xml));

    List<List<String>> emptyLists = new ArrayList<List<String>>();
    emptyLists.add(empty);
    emptyLists.add(empty);
    emptyLists.add(empty);
    xml = beanXmlConverter.convertToXml(emptyLists);
    XmlUtil.parse(xml);
    expectedXml =
      "<response>" +
      "<ArrayList/>" +
      "<ArrayList/>" +
      "<ArrayList/>" +
      "</response>";
    assertEquals(expectedXml, StringUtils.deleteWhitespace(xml));
  }
  

However, question.

Should the second response really be 
<response/>

as opposed to 
<response>
  <ArrayList/>
  <ArrayList/>
  <ArrayList/>
</response>


?

> Modify BeanXmlConveter to output properly formatted xml. 
> ---------------------------------------------------------
>
>                 Key: SHINDIG-562
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-562
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Cassie Doll
>            Priority: Blocker
>
> The BeanXmlConverter needs to match the xsd in the opensocial restful spec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.