public class StringUtilTest extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
StringUtilTest.InputStreamWrapper |
protected class |
StringUtilTest.ReaderWrapper |
| Constructor and Description |
|---|
StringUtilTest() |
public StringUtilTest()
public void compareSeparatedLines(Object... lines)
public void splitLinesShouldWorkCorrectly()
public void createStringShouldFailIfNoPatternSupplied()
public void createStringShouldAllowNoParametersSupplied()
public void createStringShouldCreateStringFromPattern()
public void createStringShouldFailIfTooFewArgumentsSupplied()
public void createStringShouldFailIfTooManyArgumentsSupplied()
public void createStringExceptionMessageShouldbeGrammaticallyCorrect()
public void setLengthShouldTruncateStringsThatAreTooLong()
@FixFor(value="MODE-2322") public void shouldSupportPrimitiveArrays()
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 truncateShouldReturnEmptyStringIfNullReferenceIsSupplied()
public void truncateShouldNotAllowNegativeLength()
public void truncateShouldReturnEmptyStringForMaximumLengthOfZero()
public void truncateShouldNotTruncateStringShorterThanMaximumLength()
public void truncateShouldNotTruncateStringWithLengthEqualToMaximumLength()
public void truncateShouldProperlyTruncateStringWithLengthGreaterThanMaximumLength()
public void truncateShouldProperlyTruncateStringWithLengthGreaterThanMaximumLengthAndMaximumLengthLongerThanPrefixLength()
public void readShouldReturnEmptyStringForNullInputStream() throws Exception
Exceptionpublic void readShouldReturnEmptyStringForNullReader() throws Exception
Exceptionpublic void readShouldReadInputStreamCorrectlyAndShouldCloseStream() throws Exception
Exceptionpublic void readShouldReadReaderCorrectlyAndShouldCloseStream() throws Exception
Exceptionpublic void getStackTraceShouldReturnStackTrace()
public void normalizeShouldFailIfTextNull()
public void normalizeShouldRemoveLeadingTrailingWhitespace()
public void normalizeShouldReduceInternalWhitespace()
public void normalizeShouldReturnEqualStringIfNothingToNormalize()
Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.