Search in sources :

Example 1 with StringUtil

use of org.jabref.model.strings.StringUtil in project jabref by JabRef.

the class CodeStyleTests method StringUtilClassIsSmall.

@Test
public void StringUtilClassIsSmall() throws Exception {
    Path path = Paths.get("src", "main", "java", StringUtil.class.getName().replace('.', '/') + ".java");
    int lineCount = Files.readAllLines(path, StandardCharsets.UTF_8).size();
    Assert.assertTrue("StringUtil increased in size. " + "We try to keep this class as small as possible. " + "Thus think twice if you add something to StringUtil.", lineCount <= 715);
}
Also used : Path(java.nio.file.Path) StringUtil(org.jabref.model.strings.StringUtil) Test(org.junit.Test)

Aggregations

Path (java.nio.file.Path)1 StringUtil (org.jabref.model.strings.StringUtil)1 Test (org.junit.Test)1