Gridarta Editor
|
Public Member Functions | |
void | testDiffTextString () |
void | testEnsureTrailingNewline () |
void | testRemoveAttribute () |
void | testRemoveTrailingWhitespace () |
void | testRemoveTrailingWhitespaceFromLines () |
Static Private Member Functions | |
static void | testDiffTextString (@NotNull final CharSequence base, @NotNull final String str, @Nullable final String expectedFalse, @Nullable final String expectedTrue) |
static void | testEnsureTrailingNewline (@NotNull final String input, @NotNull final String output) |
static void | testGetAttribute (@NotNull final CharSequence attributes, @NotNull final String attributeName, @Nullable final String expectedAttributeValue) |
static void | testRemoveTrailingWhitespace (final CharSequence input, final String output) |
static void | testRemoveTrailingWhitespaceFromLines (@NotNull final CharSequence input, @NotNull final String output) |
Test for StringUtils.
Definition at line 32 of file StringUtilsTest.java.
void net.sf.gridarta.utils.StringUtilsTest.testDiffTextString | ( | ) |
Test case for String, boolean).
Definition at line 104 of file StringUtilsTest.java.
|
staticprivate |
Checks two invocations of String, boolean).
base | the 'base' parameter to use |
str | the 'str' parameter to use |
expectedFalse | the expected return value if 'ignoreValues' is false
|
expectedTrue | the expected return value if 'ignoreValues' is true
|
Definition at line 128 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.diffTextString().
void net.sf.gridarta.utils.StringUtilsTest.testEnsureTrailingNewline | ( | ) |
Test case for StringUtils#ensureTrailingNewline(String).
Definition at line 82 of file StringUtilsTest.java.
|
staticprivate |
Checks one invocation of StringUtils#ensureTrailingNewline(String).
input | the input string |
output | the expected output string |
Definition at line 95 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.ensureTrailingNewline().
|
staticprivate |
Checks that StringUtils#getAttribute(CharSequence, String) does work.
attributes | the attributes to search |
attributeName | the attribute name to search for |
expectedAttributeValue | the found attribute value |
Definition at line 155 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.getAttribute().
void net.sf.gridarta.utils.StringUtilsTest.testRemoveAttribute | ( | ) |
Test case for StringUtils#getAttribute(CharSequence, String).
Definition at line 137 of file StringUtilsTest.java.
void net.sf.gridarta.utils.StringUtilsTest.testRemoveTrailingWhitespace | ( | ) |
Test case for StringUtils#removeTrailingWhitespace(CharSequence).
Definition at line 38 of file StringUtilsTest.java.
|
staticprivate |
Checks one invocation of StringUtils#removeTrailingWhitespace(CharSequence).
input | the input string |
output | the expected output string |
Definition at line 50 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.removeTrailingWhitespace().
void net.sf.gridarta.utils.StringUtilsTest.testRemoveTrailingWhitespaceFromLines | ( | ) |
Test case for StringUtils#removeTrailingWhitespaceFromLines(CharSequence).
Definition at line 58 of file StringUtilsTest.java.
|
staticprivate |
Checks one invocation of StringUtils#removeTrailingWhitespaceFromLines(CharSequence).
input | the input string |
output | the expected output string |
Definition at line 74 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.removeTrailingWhitespaceFromLines().