|
Gridarta Editor
|
Test for StringUtils. More...
Collaboration diagram for net.sf.gridarta.utils.StringUtilsTest:Public Member Functions | |
| void | testDiffTextString () |
| Test case for String, boolean). More... | |
| void | testEnsureTrailingNewline () |
| Test case for StringUtils#ensureTrailingNewline(String). More... | |
| void | testRemoveAttribute () |
| Test case for StringUtils#getAttribute(CharSequence, String). More... | |
| void | testRemoveTrailingWhitespace () |
| Test case for StringUtils#removeTrailingWhitespace(CharSequence). More... | |
| void | testRemoveTrailingWhitespaceFromLines () |
| Test case for StringUtils#removeTrailingWhitespaceFromLines(CharSequence). More... | |
Static Private Member Functions | |
| static void | testDiffTextString (@NotNull final CharSequence base, @NotNull final String str, @Nullable final String expectedFalse, @Nullable final String expectedTrue) |
| Checks two invocations of String, boolean). More... | |
| static void | testEnsureTrailingNewline (@NotNull final String input, @NotNull final String output) |
| Checks one invocation of StringUtils#ensureTrailingNewline(String). More... | |
| static void | testGetAttribute (@NotNull final CharSequence attributes, @NotNull final String attributeName, @Nullable final String expectedAttributeValue) |
| Checks that StringUtils#getAttribute(CharSequence, String) does work. More... | |
| static void | testRemoveTrailingWhitespace (final CharSequence input, final String output) |
| Checks one invocation of StringUtils#removeTrailingWhitespace(CharSequence). More... | |
| static void | testRemoveTrailingWhitespaceFromLines (@NotNull final CharSequence input, @NotNull final String output) |
| Checks one invocation of StringUtils#removeTrailingWhitespaceFromLines(CharSequence). More... | |
Test for StringUtils.
Definition at line 31 of file StringUtilsTest.java.
| void net.sf.gridarta.utils.StringUtilsTest.testDiffTextString | ( | ) |
Test case for String, boolean).
Definition at line 103 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 127 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.diffTextString().
Here is the call graph for this function:| void net.sf.gridarta.utils.StringUtilsTest.testEnsureTrailingNewline | ( | ) |
Test case for StringUtils#ensureTrailingNewline(String).
Definition at line 81 of file StringUtilsTest.java.
|
staticprivate |
Checks one invocation of StringUtils#ensureTrailingNewline(String).
| input | the input string |
| output | the expected output string |
Definition at line 94 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.ensureTrailingNewline().
Here is the call graph for this function:
|
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 154 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.getAttribute().
Referenced by net.sf.gridarta.utils.StringUtilsTest.testRemoveAttribute().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.utils.StringUtilsTest.testRemoveAttribute | ( | ) |
Test case for StringUtils#getAttribute(CharSequence, String).
Definition at line 136 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtilsTest.testGetAttribute().
Here is the call graph for this function:| void net.sf.gridarta.utils.StringUtilsTest.testRemoveTrailingWhitespace | ( | ) |
Test case for StringUtils#removeTrailingWhitespace(CharSequence).
Definition at line 37 of file StringUtilsTest.java.
|
staticprivate |
Checks one invocation of StringUtils#removeTrailingWhitespace(CharSequence).
| input | the input string |
| output | the expected output string |
Definition at line 49 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.removeTrailingWhitespace().
Here is the call graph for this function:| void net.sf.gridarta.utils.StringUtilsTest.testRemoveTrailingWhitespaceFromLines | ( | ) |
Test case for StringUtils#removeTrailingWhitespaceFromLines(CharSequence).
Definition at line 57 of file StringUtilsTest.java.
|
staticprivate |
Checks one invocation of StringUtils#removeTrailingWhitespaceFromLines(CharSequence).
| input | the input string |
| output | the expected output string |
Definition at line 73 of file StringUtilsTest.java.
References net.sf.gridarta.utils.StringUtils.removeTrailingWhitespaceFromLines().
Here is the call graph for this function: