net.sf.gridarta.utils
public class StringUtilsTest extends Object
StringUtils
.Constructor and Description |
---|
StringUtilsTest() |
public StringUtilsTest()
public void testRemoveTrailingWhitespace()
StringUtils.removeTrailingWhitespace(CharSequence)
.private static void testRemoveTrailingWhitespace(CharSequence input, String output)
StringUtils.removeTrailingWhitespace(CharSequence)
.input
- the input stringoutput
- the expected output stringpublic void testRemoveTrailingWhitespaceFromLines()
StringUtils.removeTrailingWhitespaceFromLines(CharSequence)
.private static void testRemoveTrailingWhitespaceFromLines(@NotNull CharSequence input, @NotNull String output)
StringUtils.removeTrailingWhitespaceFromLines(CharSequence)
.input
- the input stringoutput
- the expected output stringpublic void testEnsureTrailingNewline()
StringUtils.ensureTrailingNewline(String)
.private static void testEnsureTrailingNewline(@NotNull String input, @NotNull String output)
StringUtils.ensureTrailingNewline(String)
.input
- the input stringoutput
- the expected output stringpublic void testDiffTextString()
StringUtils.diffTextString(CharSequence, String,
boolean)
.private static void testDiffTextString(@NotNull CharSequence base, @NotNull String str, @Nullable String expectedFalse, @Nullable String expectedTrue)
StringUtils.diffTextString(CharSequence,
String, boolean)
.base
- the 'base' parameter to usestr
- the 'str' parameter to useexpectedFalse
- the expected return value if 'ignoreValues' is
false
expectedTrue
- the expected return value if 'ignoreValues' is
true
public void testRemoveAttribute()
StringUtils.getAttribute(CharSequence, String)
.private static void testGetAttribute(@NotNull CharSequence attributes, @NotNull String attributeName, @Nullable String expectedAttributeValue)
StringUtils.getAttribute(CharSequence, String)
does
work.attributes
- the attributes to searchattributeName
- the attribute name to search forexpectedAttributeValue
- the found attribute valueFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.