Package io.debezium.util
Class StringsTest
java.lang.Object
io.debezium.util.StringsTest
- Author:
- Randall Hauch, Horia Chiorean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidassertRegexList(String patterns, String... matches) protected voidassertRegexSet(String patterns, String... matches) protected voidvoidcompareSeparatedLines(Object... lines) voidvoidgetBegin()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidjustifyCenterShouldPrependAndAppendSameNumberOfCharacterForStringsThatAreTooShortButOfAnEvenLength()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
StringsTest
public StringsTest()
-
-
Method Details
-
compareSeparatedLines
-
splitLinesShouldWorkCorrectly
public void splitLinesShouldWorkCorrectly() -
setLengthShouldTruncateStringsThatAreTooLong
public void setLengthShouldTruncateStringsThatAreTooLong() -
setLengthShouldAppendCharacterForStringsThatAreTooShort
public void setLengthShouldAppendCharacterForStringsThatAreTooShort() -
setLengthShouldNotRemoveLeadingWhitespace
public void setLengthShouldNotRemoveLeadingWhitespace() -
setLengthShouldAppendCharacterForEmptyStrings
public void setLengthShouldAppendCharacterForEmptyStrings() -
setLengthShouldAppendCharacterForNullStrings
public void setLengthShouldAppendCharacterForNullStrings() -
setLengthShouldReturnStringsThatAreTheDesiredLength
public void setLengthShouldReturnStringsThatAreTheDesiredLength() -
justifyLeftShouldTruncateStringsThatAreTooLong
public void justifyLeftShouldTruncateStringsThatAreTooLong() -
justifyLeftShouldAppendCharacterForStringsThatAreTooShort
public void justifyLeftShouldAppendCharacterForStringsThatAreTooShort() -
justifyLeftShouldRemoveLeadingWhitespace
public void justifyLeftShouldRemoveLeadingWhitespace() -
justifyLeftShouldAppendCharacterForEmptyStrings
public void justifyLeftShouldAppendCharacterForEmptyStrings() -
justifyLeftShouldAppendCharacterForNullStrings
public void justifyLeftShouldAppendCharacterForNullStrings() -
justifyLeftShouldReturnStringsThatAreTheDesiredLength
public void justifyLeftShouldReturnStringsThatAreTheDesiredLength() -
justifyRightShouldTruncateStringsThatAreTooLong
public void justifyRightShouldTruncateStringsThatAreTooLong() -
justifyRightShouldPrependCharacterForStringsThatAreTooShort
public void justifyRightShouldPrependCharacterForStringsThatAreTooShort() -
justifyRightShouldPrependCharacterForEmptyStrings
public void justifyRightShouldPrependCharacterForEmptyStrings() -
justifyRightShouldPrependCharacterForNullStrings
public void justifyRightShouldPrependCharacterForNullStrings() -
justifyRightShouldReturnStringsThatAreTheDesiredLength
public void justifyRightShouldReturnStringsThatAreTheDesiredLength() -
justifyCenterShouldTruncateStringsThatAreTooLong
public void justifyCenterShouldTruncateStringsThatAreTooLong() -
justifyCenterShouldPrependAndAppendSameNumberOfCharacterForStringsThatAreTooShortButOfAnEvenLength
public void justifyCenterShouldPrependAndAppendSameNumberOfCharacterForStringsThatAreTooShortButOfAnEvenLength() -
justifyCenterShouldPrependOneMoreCharacterThanAppendingForStringsThatAreTooShortButOfAnOddLength
public void justifyCenterShouldPrependOneMoreCharacterThanAppendingForStringsThatAreTooShortButOfAnOddLength() -
justifyCenterShouldPrependCharacterForEmptyStrings
public void justifyCenterShouldPrependCharacterForEmptyStrings() -
justifyCenterShouldPrependCharacterForNullStrings
public void justifyCenterShouldPrependCharacterForNullStrings() -
justifyCenterShouldReturnStringsThatAreTheDesiredLength
public void justifyCenterShouldReturnStringsThatAreTheDesiredLength() -
replaceVariablesShouldReplaceVariableThatHaveSameCase
public void replaceVariablesShouldReplaceVariableThatHaveSameCase() -
replaceVariablesShouldNotReplaceVariableThatHasNoDefaultAndIsNotFound
public void replaceVariablesShouldNotReplaceVariableThatHasNoDefaultAndIsNotFound() -
replaceVariablesShouldReplaceVariablesWithNoDefault
public void replaceVariablesShouldReplaceVariablesWithNoDefault() -
replaceVariablesShouldReplaceVariablesWithDefaultWhenNoReplacementIsFound
public void replaceVariablesShouldReplaceVariablesWithDefaultWhenNoReplacementIsFound() -
replaceVariablesShouldReplaceMultipleVariables
public void replaceVariablesShouldReplaceMultipleVariables() -
isNullOrEmptyReturnsTrueForNull
public void isNullOrEmptyReturnsTrueForNull() -
isNullOrEmptyReturnsTrueForEmptyString
public void isNullOrEmptyReturnsTrueForEmptyString() -
isNullOrEmptyReturnsFalseForFalseForNonEmptyString
public void isNullOrEmptyReturnsFalseForFalseForNonEmptyString() -
isNullOrEmptyReturnsFalseForFalseForBlankString
public void isNullOrEmptyReturnsFalseForFalseForBlankString() -
isNumericShouldReturnFalseForNull
public void isNumericShouldReturnFalseForNull() -
isNumericShouldReturnFalseForEmptyString
public void isNumericShouldReturnFalseForEmptyString() -
isNumericShouldReturnFalseForBlankString
public void isNumericShouldReturnFalseForBlankString() -
isNumericShouldReturnTrueForNumericString
public void isNumericShouldReturnTrueForNumericString() -
unquoteIdentifierPartShouldReturnNullForNull
public void unquoteIdentifierPartShouldReturnNullForNull() -
unquoteIdentifierPartShouldReturnSameValueForUnquotedString
public void unquoteIdentifierPartShouldReturnSameValueForUnquotedString() -
unquoteIdentifierPartShouldReturnEmptyStringForEmptyQuotedString
public void unquoteIdentifierPartShouldReturnEmptyStringForEmptyQuotedString() -
unquoteIdentifierPartShouldReturnUnquotedString
public void unquoteIdentifierPartShouldReturnUnquotedString() -
unquoteIdentifierPartShouldUnescapeEscapedQuote
public void unquoteIdentifierPartShouldUnescapeEscapedQuote() -
unquoteIdentifierPartShouldSupportDoubleQuotes
public void unquoteIdentifierPartShouldSupportDoubleQuotes() -
unquoteIdentifierPartShouldSupportBackTicks
public void unquoteIdentifierPartShouldSupportBackTicks() -
hexStringToByteArrayShouldReturnCorrectByteArray
public void hexStringToByteArrayShouldReturnCorrectByteArray() -
regexSplit
public void regexSplit() -
joinShouldExcludeFirstNullableElement
public void joinShouldExcludeFirstNullableElement() -
joinShouldExcludeSecondNullableElement
public void joinShouldExcludeSecondNullableElement() -
joinShouldExcludeAllNullableElements
public void joinShouldExcludeAllNullableElements() -
joinWithConversionShouldConvertAllElements
public void joinWithConversionShouldConvertAllElements() -
regexSplitWrongEscape
public void regexSplitWrongEscape() -
asDurationShouldConvertValue
-
startsWithIgnoreCase
public void startsWithIgnoreCase() -
getBegin
-
isBlankShouldReturnTrueForNull
public void isBlankShouldReturnTrueForNull() -
isBlankShouldReturnTrueForEmptyString
public void isBlankShouldReturnTrueForEmptyString() -
isBlankShouldReturnTrueForStringWithOnlyWhitespace
public void isBlankShouldReturnTrueForStringWithOnlyWhitespace() -
isBlankShouldReturnFalseForStringWithNonWhitespaceCharacters
public void isBlankShouldReturnFalseForStringWithNonWhitespaceCharacters() -
durationToString
public void durationToString() -
assertReplacement
-
vars
-
vars
-
assertRegexSet
-
assertRegexList
-