Class StringsTest

java.lang.Object
io.debezium.util.StringsTest

public class StringsTest extends Object
Author:
Randall Hauch, Horia Chiorean
  • Constructor Details

    • StringsTest

      public StringsTest()
  • Method Details

    • compareSeparatedLines

      public void compareSeparatedLines(Object... lines)
    • 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

      @FixFor("DBZ-1164") public void asDurationShouldConvertValue()
    • startsWithIgnoreCase

      public void startsWithIgnoreCase()
    • getBegin

      @FixFor("DBZ-1340") public void getBegin()
    • isBlankShouldReturnTrueForNull

      public void isBlankShouldReturnTrueForNull()
    • isBlankShouldReturnTrueForEmptyString

      public void isBlankShouldReturnTrueForEmptyString()
    • isBlankShouldReturnTrueForStringWithOnlyWhitespace

      public void isBlankShouldReturnTrueForStringWithOnlyWhitespace()
    • isBlankShouldReturnFalseForStringWithNonWhitespaceCharacters

      public void isBlankShouldReturnFalseForStringWithNonWhitespaceCharacters()
    • durationToString

      public void durationToString()
    • assertReplacement

      protected void assertReplacement(String before, Map<String,String> replacements, String after)
    • vars

      protected Map<String,String> vars(String var1, String val1)
    • vars

      protected Map<String,String> vars(String var1, String val1, String var2, String val2)
    • assertRegexSet

      protected void assertRegexSet(String patterns, String... matches)
    • assertRegexList

      protected void assertRegexList(String patterns, String... matches)