@Test(expectedExceptions = RemEvidenceException.class) public void exceptionOnInputStreamError() throws Exception { SignedEvidenceReader.read(Mockito.mock(InputStream.class)); }
public static Signed<Evidence> read(InputStream inputStream) throws RemEvidenceException, PeppolSecurityException { try { return read(RemHelper.getDocumentBuilder().parse(inputStream)); } catch (SAXException | IOException e) { throw new RemEvidenceException(e.getMessage(), e); } }
SignedEvidenceReader { public static Signed<Evidence> read(InputStream inputStream) throws RemEvidenceException, PeppolSecurityException { try { return read(RemHelper.getDocumentBuilder().parse(inputStream)); } catch (SAXException | IOException e) { throw new RemEvidenceException(e.getMessage(), e); } } }
SignedEvidenceReader { public static Signed<Evidence> read(InputStream inputStream) throws RemEvidenceException, PeppolSecurityException { try { return read(RemHelper.getDocumentBuilder().parse(inputStream)); } catch (SAXException | IOException e) { throw new RemEvidenceException(e.getMessage(), e); } }  }
SignedEvidenceReader { public static Signed<Evidence> read(InputStream inputStream) throws RemEvidenceException, PeppolSecurityException { try { return read(RemHelper.getDocumentBuilder().parse(inputStream)); } catch (SAXException | IOException e) { throw new RemEvidenceException(e.getMessage(), e); } }  static Signed<Evidence> read(InputStream inputStream); static Signed<Evidence> read(Node node); }
SignedEvidenceReader { public static Signed<Evidence> read(InputStream inputStream) throws RemEvidenceException, PeppolSecurityException { try { return read(RemHelper.getDocumentBuilder().parse(inputStream)); } catch (SAXException | IOException e) { throw new RemEvidenceException(e.getMessage(), e); } }  static Signed<Evidence> read(InputStream inputStream); static Signed<Evidence> read(Node node);  }