public class WordWrapTest extends Object
Constructor and Description |
---|
WordWrapTest() |
public void longLineSplitsOnWhiteSpace()
public void longLineWithTwoSpacesInMiddle()
public void longLineALotOfWhiteSpaceInMiddle()
public void precedingWhitespaceConserved()
public void precedingWhitespaceLongWord()
public void whitespacePreservedAfterNewLine()
public void shortLineNoWhitespace()
public void shortLineHasWhitespace()
public void emptyText()
public void oneLetter()
public void spaceThenOneLetter()
public void newLineCharacterPreserved()
public void carriageReturnRemoved()
public void whitespaceConservedAfterNewLine()
public void wrapRightTrimsWhitespaceBeforeNewLine()
public void longWordForcesBreak()
public void longWordForcesBreakNoHyphens()
public void breakOnCommaDoesNotHappenWithoutSpaceAfter()
public void noHyphenAfterDigits()
public void breakOnCommasWithDigits()
public void longThenShort()
public void longThenShortWithMoreLines()
public void endWithNewLine()
public void spaceAndQuestionMark()
public void dontBreakOnQuestionMark()
public void breakOnQuote()
public void breakQuoteInMiddle()
public void shortThenLong()
public void longWhitespaceThenWord()
public void longWhitespaceLastLine()
public void longWhitespaceThenNewLine()
public void conserveWhitespace()
public void testLeftTrimLeadingEmpty()
public void testLeftTrimLeadingSpaces0()
public void testLeftTrimLeadingSpaces1()
public void testLeftTrimLeadingSpaces3()
public void testRightTrimAtEnd()
public void testRightTrimNoSpace()
public void testRightTrimEmpty()
public void testRightTrimOnlySpace()
public void testStringWidth()
public void testNewLineOverride()
public void testSetWordChars()
public void testIncludeWordChars()
public void testExcludeWordChars()
public void testDontBreakLongWords()
public void testDontBreakLongWords2()
public void testFromInputStream()
public void testFromFile() throws IOException
IOException
public void testWriterThrows()
public void testWrapToFileThrows()
public void testCloseReaderThrows()
public void testFromFileDoesNotExist() throws IOException
IOException
public void testToList()
public void testToListWithNewLines()
public void testToListFinishWithNewLines()
public void testLineConsumerThrows()
public void testLineConsumerThrowsDontCloseReader()
public void testMaxWidthZero()
public void testWrapToFile()
public void testDontWrapNumbers()
public void testNumbersWrapByDefault()
public void testStatelessness()
public void testIssue49()
public void testImportanceOfBeingEarnest() throws IOException
IOException
public void testTheBlackGang() throws IOException
IOException
public void testTreasureIsland() throws IOException
IOException
public void testWrapWithAtLeastLineLongWhitespaceFollowedByParenthesis()
public void testIsUtilityClass()
public static void main(String[] args) throws IOException
IOException
Copyright © 2018–2024. All rights reserved.