/** * Set the text that is returned by {@code System.in}. You can * provide multiple texts. In that case the texts are concatenated. * * @param texts a list of texts. * @deprecated please use {@link #provideLines(String...)} */ @Deprecated public void provideText(String... texts) { systemInMock.provideText(join(texts)); }
/** * Set the text that is returned by {@code System.in}. You can * provide multiple texts. In that case the texts are concatenated. * * @param texts a list of texts. * @deprecated please use {@link #provideLines(String...)} */ @Deprecated public void provideText(String... texts) { systemInMock.provideText(join(texts)); }
/** * Set the text that is returned by {@code System.in}. You can * provide multiple texts. In that case the texts are concatenated. * * @param texts a list of texts. * @deprecated please use {@link #provideLines(String...)} */ @Deprecated public void provideText(String... texts) { systemInMock.provideText(join(texts)); }
/** * Set the lines that are returned by {@code System.in}. * {@code System.getProperty("line.separator")} is used for the end * of line. * * @param lines a list of lines. */ public void provideLines(String... lines) { systemInMock.provideText(joinLines(lines)); }
/** * Set the lines that are returned by {@code System.in}. * {@code System.getProperty("line.separator")} is used for the end * of line. * * @param lines a list of lines. */ public void provideLines(String... lines) { systemInMock.provideText(joinLines(lines)); }
/** * Set the lines that are returned by {@code System.in}. * {@code System.getProperty("line.separator")} is used for the end * of line. * * @param lines a list of lines. */ public void provideLines(String... lines) { systemInMock.provideText(joinLines(lines)); }