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);
|
InputStream is = getXmlStream("no-bom", "xml", encoding, encoding);
|
||||||
XmlReader xmlReader = new XmlReader(is, false);
|
XmlReader xmlReader = new XmlReader(is, false);
|
||||||
assertEquals(xmlReader.getEncoding(), "UTF-8");
|
assertEquals(xmlReader.getEncoding(), "UTF-8");
|
||||||
|
xmlReader.close();
|
||||||
|
|
||||||
is = getXmlStream("no-bom", "xml-prolog", encoding, encoding);
|
is = getXmlStream("no-bom", "xml-prolog", encoding, encoding);
|
||||||
xmlReader = new XmlReader(is);
|
xmlReader = new XmlReader(is);
|
||||||
assertEquals(xmlReader.getEncoding(), "UTF-8");
|
assertEquals(xmlReader.getEncoding(), "UTF-8");
|
||||||
|
xmlReader.close();
|
||||||
|
|
||||||
is = getXmlStream("no-bom", "xml-prolog-encoding", encoding, encoding);
|
is = getXmlStream("no-bom", "xml-prolog-encoding", encoding, encoding);
|
||||||
xmlReader = new XmlReader(is);
|
xmlReader = new XmlReader(is);
|
||||||
assertEquals(xmlReader.getEncoding(), encoding);
|
assertEquals(xmlReader.getEncoding(), encoding);
|
||||||
|
xmlReader.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue