remove warning about reader not closed
This commit is contained in:
parent
b015f3ae0c
commit
3fe096365c
1 changed files with 3 additions and 0 deletions
|
@ -51,14 +51,17 @@ public class TestXmlReader extends TestCase {
|
|||
InputStream is = getXmlStream("no-bom", "xml", encoding, encoding);
|
||||
XmlReader xmlReader = new XmlReader(is, false);
|
||||
assertEquals(xmlReader.getEncoding(), "UTF-8");
|
||||
xmlReader.close();
|
||||
|
||||
is = getXmlStream("no-bom", "xml-prolog", encoding, encoding);
|
||||
xmlReader = new XmlReader(is);
|
||||
assertEquals(xmlReader.getEncoding(), "UTF-8");
|
||||
xmlReader.close();
|
||||
|
||||
is = getXmlStream("no-bom", "xml-prolog-encoding", encoding, encoding);
|
||||
xmlReader = new XmlReader(is);
|
||||
assertEquals(xmlReader.getEncoding(), encoding);
|
||||
xmlReader.close();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue