public class StringsTest extends Object
| Constructor and Description |
|---|
StringsTest() |
public void compareSeparatedLines(Object... lines)
public void splitLinesShouldWorkCorrectly()
public void setLengthShouldTruncateStringsThatAreTooLong()
public void setLengthShouldAppendCharacterForStringsThatAreTooShort()
public void setLengthShouldNotRemoveLeadingWhitespace()
public void setLengthShouldAppendCharacterForEmptyStrings()
public void setLengthShouldAppendCharacterForNullStrings()
public void setLengthShouldReturnStringsThatAreTheDesiredLength()
public void justifyLeftShouldTruncateStringsThatAreTooLong()
public void justifyLeftShouldAppendCharacterForStringsThatAreTooShort()
public void justifyLeftShouldRemoveLeadingWhitespace()
public void justifyLeftShouldAppendCharacterForEmptyStrings()
public void justifyLeftShouldAppendCharacterForNullStrings()
public void justifyLeftShouldReturnStringsThatAreTheDesiredLength()
public void justifyRightShouldTruncateStringsThatAreTooLong()
public void justifyRightShouldPrependCharacterForStringsThatAreTooShort()
public void justifyRightShouldPrependCharacterForEmptyStrings()
public void justifyRightShouldPrependCharacterForNullStrings()
public void justifyRightShouldReturnStringsThatAreTheDesiredLength()
public void justifyCenterShouldTruncateStringsThatAreTooLong()
public void justifyCenterShouldPrependAndAppendSameNumberOfCharacterForStringsThatAreTooShortButOfAnEvenLength()
public void justifyCenterShouldPrependOneMoreCharacterThanAppendingForStringsThatAreTooShortButOfAnOddLength()
public void justifyCenterShouldPrependCharacterForEmptyStrings()
public void justifyCenterShouldPrependCharacterForNullStrings()
public void justifyCenterShouldReturnStringsThatAreTheDesiredLength()
public void replaceVariablesShouldReplaceVariableThatHaveSameCase()
public void replaceVariablesShouldNotReplaceVariableThatHasNoDefaultAndIsNotFound()
public void replaceVariablesShouldReplaceVariablesWithNoDefault()
public void replaceVariablesShouldReplaceVariablesWithDefaultWhenNoReplacementIsFound()
public void replaceVariablesShouldReplaceMultipleVariables()
public void isNullOrEmptyReturnsTrueForNull()
public void isNullOrEmptyReturnsTrueForEmptyString()
public void isNullOrEmptyReturnsFalseForFalseForNonEmptyString()
public void isNullOrEmptyReturnsFalseForFalseForBlankString()
public void unquoteIdentifierPartShouldReturnNullForNull()
public void unquoteIdentifierPartShouldReturnSameValueForUnquotedString()
public void unquoteIdentifierPartShouldReturnEmptyStringForEmptyQuotedString()
public void unquoteIdentifierPartShouldReturnUnquotedString()
public void unquoteIdentifierPartShouldUnescapeEscapedQuote()
public void unquoteIdentifierPartShouldSupportDoubleQuotes()
public void unquoteIdentifierPartShouldSupportBackTicks()
public void hexStringToByteArrayShouldReturnCorrectByteArray()
public void regexSplit()
public void regexSplitWrongEscape()
protected void assertReplacement(String before, Map<String,String> replacements, String after)
Copyright © 2019 JBoss by Red Hat. All rights reserved.