StringUtilsEqualsIndexOfTest: fix checkstyle violations

This commit is contained in:
pascalschumacher 2017-03-19 10:31:21 +01:00
parent 27d3d40f7c
commit 99900ae089
1 changed files with 33 additions and 40 deletions

View File

@ -315,7 +315,6 @@ public class StringUtilsEqualsIndexOfTest {
assertEquals(1, StringUtils.indexOf(builder.toString(), CODE_POINT, 0));
assertEquals(-1, StringUtils.indexOf(builder, CODE_POINT, 2));
assertEquals(-1, StringUtils.indexOf(builder.toString(), CODE_POINT, 2));
}
@Test
@ -453,7 +452,6 @@ public class StringUtilsEqualsIndexOfTest {
assertEquals(0, StringUtils.indexOfAnyBut("zzabyycdxx", 'b','y'));
assertEquals(-1, StringUtils.indexOfAnyBut("aba", 'a', 'b'));
assertEquals(0, StringUtils.indexOfAnyBut("aba", 'z'));
}
@Test
@ -558,8 +556,6 @@ public class StringUtilsEqualsIndexOfTest {
assertEquals(0, StringUtils.lastIndexOf(builder, CODE_POINT, 1));
assertEquals(2, StringUtils.lastIndexOf(builder, CODE_POINT, 2));
builder.append("aaaaa");
assertEquals(2, StringUtils.lastIndexOf(builder, CODE_POINT, 4));
// inner branch on the supplementary character block
@ -572,8 +568,6 @@ public class StringUtilsEqualsIndexOfTest {
assertEquals(1, StringUtils.lastIndexOf(builder, CODE_POINT, 1 ));
assertEquals(-1, StringUtils.lastIndexOf(builder.toString(), CODE_POINT, 0));
assertEquals(1, StringUtils.lastIndexOf(builder.toString(), CODE_POINT, 1));
}
@Test
@ -786,7 +780,6 @@ public class StringUtilsEqualsIndexOfTest {
assertEquals(2, StringUtils.ordinalIndexOf("abababab", "abab", 2));
assertEquals(4, StringUtils.ordinalIndexOf("abababab", "abab", 3));
assertEquals(-1, StringUtils.ordinalIndexOf("abababab", "abab", 4));
}
@Test