assertEquals(1, places.places.size());
}
@Test
public void emptyRootList() {
List<String> empty = new GsonXmlBuilder()
.setXmlParserCreator(SimpleXmlReaderTest.PARSER_CREATOR)
.setRootArrayPrimitive(true)
.create()
.fromXml("<root></root>", new TypeToken<List<String>>() { }.getType());
assertTrue(empty.isEmpty());
empty = new GsonXmlBuilder()
.setXmlParserCreator(SimpleXmlReaderTest.PARSER_CREATOR)
.setSameNameLists(false)
.create()
.fromXml("<root></root>", new TypeToken<List<String>>() { }.getType());