本文整理了Java中org.assertj.core.api.Assertions.linesOf()
方法的一些代码示例,展示了Assertions.linesOf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assertions.linesOf()
方法的具体详情如下:
包路径:org.assertj.core.api.Assertions
类名称:Assertions
方法名:linesOf
[英]Loads the text content of a file into a list of strings with the default charset, each string corresponding to a line. The line endings are either \n, \r or \r\n.
[中]将文件的文本内容加载到具有默认字符集的字符串列表中,每个字符串对应一行。行尾为\n\r或\r\n。
代码示例来源:origin: org.assertj/assertj-core
/**
* Loads the text content of a file into a list of strings, each string corresponding to a line.
* The line endings are either \n, \r or \r\n.
*
* @param file the file.
* @param charset the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
*/
default List<String> linesOf(final File file, final Charset charset) {
return Assertions.linesOf(file, charset);
}
代码示例来源:origin: org.assertj/assertj-core
/**
* Loads the text content of a file into a list of strings with the default charset, each string corresponding to a
* line.
* The line endings are either \n, \r or \r\n.
*
* @param file the file.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
*/
default List<String> linesOf(final File file) {
return Assertions.linesOf(file);
}
代码示例来源:origin: org.assertj/assertj-core
/**
* Loads the text content of a file into a list of strings, each string corresponding to a line. The line endings are
* either \n, \r or \r\n.
*
* @param file the file.
* @param charsetName the name of the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
*/
default List<String> linesOf(final File file, final String charsetName) {
return Assertions.linesOf(file, charsetName);
}
代码示例来源:origin: org.assertj/assertj-core
/**
* Loads the text content of a URL into a list of strings with the default charset, each string corresponding to a
* line.
* The line endings are either \n, \r or \r\n.
*
* @param url the URL.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
* @since 3.9.0
*/
default List<String> linesOf(URL url) {
return Assertions.linesOf(url);
}
代码示例来源:origin: org.assertj/assertj-core
/**
* Loads the text content of a URL into a list of strings, each string corresponding to a line.
* The line endings are either \n, \r or \r\n.
*
* @param url the URL.
* @param charset the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
* @since 3.9.0
*/
default List<String> linesOf(URL url, Charset charset) {
return Assertions.linesOf(url, charset);
}
代码示例来源:origin: org.assertj/assertj-core
/**
* Loads the text content of a URL into a list of strings, each string corresponding to a line. The line endings are
* either \n, \r or \r\n.
*
* @param url the URL.
* @param charsetName the name of the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
* @since 3.9.0
*/
default List<String> linesOf(URL url, String charsetName) {
return Assertions.linesOf(url, charsetName);
}
代码示例来源:origin: joel-costigliola/assertj-core
/**
* Loads the text content of a URL into a list of strings, each string corresponding to a line.
* The line endings are either \n, \r or \r\n.
*
* @param url the URL.
* @param charset the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
* @since 3.9.0
*/
default List<String> linesOf(URL url, Charset charset) {
return Assertions.linesOf(url, charset);
}
代码示例来源:origin: joel-costigliola/assertj-core
/**
* Loads the text content of a file into a list of strings with the default charset, each string corresponding to a
* line.
* The line endings are either \n, \r or \r\n.
*
* @param file the file.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
*/
default List<String> linesOf(final File file) {
return Assertions.linesOf(file);
}
代码示例来源:origin: joel-costigliola/assertj-core
/**
* Loads the text content of a file into a list of strings, each string corresponding to a line.
* The line endings are either \n, \r or \r\n.
*
* @param file the file.
* @param charset the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
*/
default List<String> linesOf(final File file, final Charset charset) {
return Assertions.linesOf(file, charset);
}
代码示例来源:origin: joel-costigliola/assertj-core
/**
* Loads the text content of a file into a list of strings, each string corresponding to a line. The line endings are
* either \n, \r or \r\n.
*
* @param file the file.
* @param charsetName the name of the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
*/
default List<String> linesOf(final File file, final String charsetName) {
return Assertions.linesOf(file, charsetName);
}
代码示例来源:origin: joel-costigliola/assertj-core
/**
* Loads the text content of a URL into a list of strings with the default charset, each string corresponding to a
* line.
* The line endings are either \n, \r or \r\n.
*
* @param url the URL.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
* @since 3.9.0
*/
default List<String> linesOf(URL url) {
return Assertions.linesOf(url);
}
代码示例来源:origin: joel-costigliola/assertj-core
/**
* Loads the text content of a URL into a list of strings, each string corresponding to a line. The line endings are
* either \n, \r or \r\n.
*
* @param url the URL.
* @param charsetName the name of the character set to use.
* @return the content of the file.
* @throws NullPointerException if the given charset is {@code null}.
* @throws UncheckedIOException if an I/O exception occurs.
* @since 3.9.0
*/
default List<String> linesOf(URL url, String charsetName) {
return Assertions.linesOf(url, charsetName);
}
代码示例来源:origin: org.assertj/assertj-core-java8
/**
* Delegate call to {@link org.assertj.core.api.Assertions#linesOf(File,Charset)}
*/
default public List<String> linesOf(final File actual, final Charset arg1) {
return Assertions.linesOf(actual, arg1);
}
代码示例来源:origin: org.assertj/assertj-core-java8
/**
* Delegate call to {@link org.assertj.core.api.Assertions#linesOf(File)}
*/
default public List<String> linesOf(final File actual) {
return Assertions.linesOf(actual);
}
代码示例来源:origin: org.assertj/assertj-core-java8
/**
* Delegate call to {@link org.assertj.core.api.Assertions#linesOf(File,String)}
*/
default public List<String> linesOf(final File file, final String charsetName) {
return Assertions.linesOf(file, charsetName);
}
代码示例来源:origin: webanno/webanno
linesOf(new File("src/test/resources/output_cas_to_json_collection_expected.json"),
"UTF-8")).isEqualTo(linesOf(new File(jsonFilePath), "UTF-8"));
代码示例来源:origin: webanno/webanno
assertThat(linesOf(new File("src/test/resources/output_cas_to_json_document_expected.json"),
"UTF-8")).isEqualTo(linesOf(new File(jsonFilePath), "UTF-8"));
内容来源于网络,如有侵权,请联系作者删除!