public void close() { if (!m_operational) { return; } m_operational=false; m_reader.close(); m_reader=null; m_strings=null; m_resourceIDs=null; m_namespaces.reset(); resetEventInfo(); }
@Test public void testClose() throws IOException { underTest.close(); verify(mockStream, times(1)).close(); }
@Test public void testCloseDoesntDieWithNull() { underTest = new IntReader(null, true); underTest.close(); }