XmlSerializerProperties { public ConcurrentMap<String, Object> getProps() { return mProps; } XmlSerializerProperties(); ConcurrentMap<String, Object> readProps(final String filePath); ConcurrentMap<String, Object> getProps(); static final Object[] S_ID; static final Object[] S_INDENT; static final Object[] S_INDENT_SPACES; static final Object[] S_REST; static final Object[] S_XMLDECL; }
@Test public void testXMLSerializerProp() { final XmlSerializerProperties props = new XmlSerializerProperties(); final ConcurrentHashMap<String, Object> map = (ConcurrentHashMap<String, Object>) props.getProps(); final Enumeration<String> keys = map.keys(); assertNotNull(keys); while (keys.hasMoreElements()) { final String key = keys.nextElement(); if (key.equals(S_ID[0])) { assertEquals(false, map.get(S_ID[0])); } else if (key.equals(S_REST[0])) { assertEquals(false, map.get(S_REST[0])); } else if (key.equals(S_INDENT[0])) { assertEquals(false, map.get(S_INDENT[0])); } else if (key.equals(S_INDENT_SPACES[0])) { assertSame(2, map.get(S_INDENT_SPACES[0])); } else if (key.equals(S_XMLDECL[0])) { assertEquals(false, map.get(S_XMLDECL[0])); } } }