Searched refs:printWriterToString (Results 1 – 4 of 4) sorted by relevance
19 import static com.android.adservices.shared.testing.util.IoHelper.printWriterToString;33 assertThrows(NullPointerException.class, () -> printWriterToString(null)); in testPrintWriterToString_null()38 String string = printWriterToString(pw -> pw.write("I write(), therefore I am()")); in testPrintWriterToString()
22 import static com.android.adservices.shared.testing.util.IoHelper.printWriterToString;101 String pwStackTrace = printWriterToString((pw) -> e.printStackTrace(pw)); in assertStackTrace()111 String causeStackTrace = printWriterToString((writer) -> cause.printStackTrace(writer)); in assertStackTraceContents()
33 public static String printWriterToString(ThrowingConsumer<PrintWriter, IOException> consumer) in printWriterToString() method in IoHelper
38 return IoHelper.printWriterToString( in dump()