@Test public void readAsString_A$InputStream$String_StringIsEmpty() throws Exception { InputStream is = null; String encoding = ""; try { IOUtil.readAsString(is, encoding); fail(); } catch (JUnitHelperCoreException e) { } }
public static final String readAsString(InputStream is, String encoding) throws IOException { Assertion.on("is(InputStream)").mustNotBeNull(is); if (encoding == null) { encoding = DEFAULT_OUTPUT_FILE_ENCODING; } return IOUtils.toString(is, encoding); }
IOUtil { public static final String readAsString(InputStream is, String encoding) throws IOException { Assertion.on("is(InputStream)").mustNotBeNull(is); if (encoding == null) { encoding = DEFAULT_OUTPUT_FILE_ENCODING; } return IOUtils.toString(is, encoding); } }
IOUtil { public static final String readAsString(InputStream is, String encoding) throws IOException { Assertion.on("is(InputStream)").mustNotBeNull(is); if (encoding == null) { encoding = DEFAULT_OUTPUT_FILE_ENCODING; } return IOUtils.toString(is, encoding); } private  IOUtil(); }
IOUtil { public static final String readAsString(InputStream is, String encoding) throws IOException { Assertion.on("is(InputStream)").mustNotBeNull(is); if (encoding == null) { encoding = DEFAULT_OUTPUT_FILE_ENCODING; } return IOUtils.toString(is, encoding); } private  IOUtil(); static InputStream getResourceAsStream(String name); static final String readAsString(InputStream is, String encoding); static final List<String> readAsLineList(InputStream is); }
IOUtil { public static final String readAsString(InputStream is, String encoding) throws IOException { Assertion.on("is(InputStream)").mustNotBeNull(is); if (encoding == null) { encoding = DEFAULT_OUTPUT_FILE_ENCODING; } return IOUtils.toString(is, encoding); } private  IOUtil(); static InputStream getResourceAsStream(String name); static final String readAsString(InputStream is, String encoding); static final List<String> readAsLineList(InputStream is);  }