Remove FQCN for StringUtils and let private functions when possible

This commit is contained in:
Cavero Barca
2020-03-14 23:06:54 +01:00
parent 5ff2933a0d
commit cba16ebc49
2 changed files with 11 additions and 10 deletions

View File

@@ -67,8 +67,8 @@ public class LTrimRTrimUnitTest {
@Test
public void givenString_whenCallingStringUtilsStripStartEnd_thenReturnsTrue() {
// Use StringUtils containsIgnoreCase to avoid case insensitive issues
String ltrim = org.apache.commons.lang3.StringUtils.stripStart(src, null);
String rtrim = org.apache.commons.lang3.StringUtils.stripEnd(src, null);
String ltrim = StringUtils.stripStart(src, null);
String rtrim = StringUtils.stripEnd(src, null);
// Compare the Strings obtained and the expected
Assert.assertTrue(ltrimResult.equalsIgnoreCase(ltrim));